diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index ae4985983e4e4324b0f8dd3649c22b4af8fc4afe..e314f6966a564fc42d4603b20fe7b1963f9d4d57 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -99,7 +99,7 @@ def scope_guard(scope): new_scope = paddle.static.Scope() with paddle.static.scope_guard(new_scope): - paddle.static.global_scope().var("data").get_tensor().set(paddle.ones((2, 2)), paddle.CPUPlace()) + paddle.static.global_scope().var("data").get_tensor().set(numpy.ones((2, 2)), paddle.CPUPlace()) numpy.array(new_scope.find_var("data").get_tensor()) """