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

Function _get_managed_classes

caffe2/python/context.py:57–61  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

55
56
57def _get_managed_classes(obj):
58 return [
59 cls for cls in inspect.getmro(obj.__class__)
60 if issubclass(cls, Managed) and cls != Managed and cls != DefaultManaged
61 ]
62
63
64

Callers 2

__enter__Method · 0.85
__exit__Method · 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…