def global_scope():
    '\n    Get the global/default scope instance. There are a lot of APIs use\n    :code:`global_scope` as its default value, e.g., :code:`Executor.run`\n\n    Examples:\n        .. code-block:: python\n\n          import paddle.fluid as fluid\n          import numpy\n\n          fluid.global_scope().var("data").get_tensor().set(numpy.ones((2, 2)), fluid.CPUPlace())\n          numpy.array(fluid.global_scope().find_var("data").get_tensor())\n\n    Returns:\n        Scope: The global/default scope instance.\n    '
    return g_scope
Get the global/default scope instance. There are a lot of APIs use
:code:`global_scope` as its default value, e.g., :code:`Executor.run`

Examples:
    .. code-block:: python

      import paddle.fluid as fluid
      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())

Returns:
    Scope: The global/default scope instance.
def global_scope():
    '\n    Get the global/default scope instance. There are a lot of APIs use\n    :code:`global_scope` as its default value, e.g., :code:`Executor.run`\n\n    Examples:\n        .. code-block:: python\n\n          import paddle.fluid as fluid\n          import numpy\n\n          fluid.global_scope().var("data").get_tensor().set(numpy.ones((2, 2)), fluid.CPUPlace())\n          numpy.array(fluid.global_scope().find_var("data").get_tensor())\n\n    Returns:\n        Scope: The global/default scope instance.\n    '
    return g_scope