Skip to content

Commit

Permalink
Revert "remove print"
Browse files Browse the repository at this point in the history
This reverts commit aec0894.
  • Loading branch information
SigureMo committed Jun 14, 2024
1 parent aec0894 commit e9ed77b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/tensor/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2685,9 +2685,9 @@ def clone(x: paddle.Tensor, name: str | None = None) -> paddle.Tensor:
>>> y = clone_x**3
>>> y.backward()
>>> clone_x.grad.numpy() # type: ignore
>>> print(clone_x.grad.numpy()) # type: ignore
[3. 3.]
>>> x.grad.numpy() # type: ignore
>>> print(x.grad.numpy()) # type: ignore
[3. 3.]
"""
return x.clone()
Expand Down

0 comments on commit e9ed77b

Please sign in to comment.