Skip to content

Commit 1aa91bf

Browse files
committed
commit missing update
1 parent 3532dd8 commit 1aa91bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/tensor/attribute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def shape(input: Tensor) -> Tensor:
104104
105105
>>> img = np.ones((3, 100, 100)).astype(np.float32)
106106
107-
>>> res = exe.run(paddle.static.default_main_program(), feed={'x':img}, fetch_list=[output])
107+
>>> res = exe.run(paddle.static.default_main_program(), feed={'x': img}, fetch_list=[output])
108108
>>> print(res)
109-
[array([ 3, 100, 100], dtype=int32)]
109+
[array([ 3, 100, 100], dtype=int64)]
110110
"""
111111
if in_dynamic_or_pir_mode():
112112
out = _C_ops.shape64(input) # type: ignore

0 commit comments

Comments
 (0)