Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Jun 14, 2024
1 parent 875843c commit aec0894
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()
>>> print(clone_x.grad.numpy()) # type: ignore
>>> clone_x.grad.numpy() # type: ignore
[3. 3.]
>>> print(x.grad.numpy()) # type: ignore
>>> x.grad.numpy() # type: ignore
[3. 3.]
"""
return x.clone()
Expand Down

0 comments on commit aec0894

Please sign in to comment.