“60d827a8b90fbe9efa54289194ab1dfc7a5834d3”上不存在“git@gitcode.net:BaiXuePrincess/Paddle.git”
  • Y
    Default scope function · d027f47d
    Yu Yang 提交于
    `Paddle` manages Scope as programming language's scope.  It just a
    thread-local stack of Scope. Top of that stack is current scope, the
    bottom of that stack is all scopes' parent.
    
    Invoking `create_var/get_var`  can `create/get` variable in current
    scope. Invoking `enter_local_scope/leave_local_scope` can create or
    destroy local scope.
    
    A `scoped_function` will take a `function` as input. That function will
    be invoked in a new local scope.
    d027f47d
default_scope_funcs.py 1.9 KB