提交 0dfc404e 编写于 作者: J jiweibo

update.

上级 2d669443
...@@ -99,7 +99,7 @@ def scope_guard(scope): ...@@ -99,7 +99,7 @@ def scope_guard(scope):
new_scope = paddle.static.Scope() new_scope = paddle.static.Scope()
with paddle.static.scope_guard(new_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()) numpy.array(new_scope.find_var("data").get_tensor())
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册