Skip to content

Commit

Permalink
[API 2.0]Update 2.0 api from fluid to paddle (PaddlePaddle#27802)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiweibo authored and chen-zhiyu committed Oct 15, 2020
1 parent 7300809 commit 3105881
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/fluid/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def global_scope():
Examples:
.. code-block:: python
import paddle.fluid as fluid
import paddle
import numpy
fluid.global_scope().var("data").get_tensor().set(numpy.ones((2, 2)), fluid.CPUPlace())
numpy.array(fluid.global_scope().find_var("data").get_tensor())
paddle.static.global_scope().var("data").get_tensor().set(numpy.ones((2, 2)), paddle.CPUPlace())
numpy.array(paddle.static.global_scope().find_var("data").get_tensor())
"""
return g_scope

Expand Down

0 comments on commit 3105881

Please sign in to comment.