MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / push_scope

Method push_scope

imperative/python/megengine/utils/naming.py:23–27  ·  view source on GitHub ↗
(cls, scope)

Source from the content-addressed store, hash-verified

21
22 @classmethod
23 def push_scope(cls, scope):
24 if scope is not None:
25 push_scope(scope)
26 record_scope(sys._getframe().f_back.f_back, scope)
27 cls.scopes.append(scope)
28
29 @classmethod
30 def pop_scope(cls):

Callers 2

__call__Method · 0.45
init_tensorFunction · 0.45

Calls 2

record_scopeFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected