Skip to content

Commit 498f26e

Browse files
committed
Remove imperative reference from docstring
1 parent 4878f98 commit 498f26e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/paddle/tensor/math.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ def add(x, y, name=None):
245245
import paddle
246246
import numpy as np
247247
248-
paddle.enable_imperative()
248+
paddle.disable_static()
249249
np_x = np.array([2, 3, 4]).astype('float64')
250250
np_y = np.array([1, 5, 2]).astype('float64')
251-
x = paddle.imperative.to_variable(np_x)
252-
y = paddle.imperative.to_variable(np_y)
251+
x = paddle.to_variable(np_x)
252+
y = paddle.to_variable(np_y)
253253
z = paddle.add(x, y)
254254
np_z = z.numpy()
255255
print(np_z) # [3., 8., 6. ]

0 commit comments

Comments
 (0)