From 0dfc404ec8b0272740a035ad1dd6f0b5afc19afd Mon Sep 17 00:00:00 2001 From: jiweibo Date: Sun, 27 Sep 2020 06:12:22 +0000 Subject: [PATCH] update. --- python/paddle/fluid/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index ae4985983e4..e314f6966a5 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()) """ -- GitLab