Skip to content

Commit 8a46cfe

Browse files
committed
add param name
1 parent 80b90a3 commit 8a46cfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/paddle/tensor/creation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,10 @@ def set_(
33933393

33943394
@inplace_apis_in_dygraph_only
33953395
def resize_(
3396-
x: paddle.Tensor, shape: Sequence[int], fill_zero: bool = False
3396+
x: paddle.Tensor,
3397+
shape: Sequence[int],
3398+
fill_zero: bool = False,
3399+
name: str | None = None,
33973400
) -> paddle.Tensor:
33983401
"""
33993402
Resize ``x`` with specified ``shape``.

0 commit comments

Comments
 (0)