diff --git a/python/paddle/tensor/creation.py b/python/paddle/tensor/creation.py index a6cff759816687..d7920d310cf89f 100644 --- a/python/paddle/tensor/creation.py +++ b/python/paddle/tensor/creation.py @@ -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()