MCPcopy Create free account
hub / github.com/pytorch/pytorch / get_current_scope

Function get_current_scope

caffe2/python/helpers/arg_scope.py:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def get_current_scope():
32 global _threadlocal_scope
33 if not hasattr(_threadlocal_scope, "current_scope"):
34 _threadlocal_scope.current_scope = {}
35 return _threadlocal_scope.current_scope

Callers 5

add_opsMethod · 0.90
add_opsMethod · 0.90
add_opsMethod · 0.90
scope_wrapperMethod · 0.85
arg_scopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…