Skip to content

Commit f2347fc

Browse files
authored
Update test_python_operator_overriding.py
1 parent c21114f commit f2347fc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/deprecated/legacy_test/test_python_operator_overriding.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,8 @@ def check_result(self, fn, place, dtype):
3030
y_data = np.random.random(size=shape).astype(dtype)
3131
python_out = fn(x_data, y_data)
3232

33-
# x_var = paddle.static.create_global_var(
34-
# name='x', shape=shape, value=0.0, dtype=dtype, persistable=True
35-
# )
3633
x_var = paddle.static.data(name='x', shape=shape, dtype=dtype)
37-
# y_var = paddle.static.create_global_var(
38-
# name='y', shape=shape, value=0.0, dtype=dtype, persistable=True
39-
# )
34+
4035
y_var = paddle.static.data(name='y', shape=shape, dtype=dtype)
4136
out = fn(x_var, y_var)
4237

0 commit comments

Comments
 (0)