MCPcopy Index your code
hub / github.com/pytorch/pytorch / __exit__

Method __exit__

caffe2/python/context.py:89–91  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

87 return self
88
89 def __exit__(self, *args):
90 for cls in _get_managed_classes(self):
91 _context_registry().get(cls).exit(self)
92
93 def __call__(self, func):
94 @functools.wraps(func)

Callers

nothing calls this directly

Calls 4

_get_managed_classesFunction · 0.85
_context_registryFunction · 0.85
exitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected