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

Method __dir__

caffe2/python/core.py:2284–2294  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2282 op_type, *args, **kwargs)
2283
2284 def __dir__(self):
2285 TriggerLazyImport()
2286 additional_methods = [
2287 op
2288 for op in _REGISTERED_OPERATORS
2289 if '_ENGINE_' not in op]
2290 return sorted(set(chain(
2291 dir(type(self)),
2292 self.__dict__.keys(),
2293 additional_methods
2294 )))
2295
2296 def Python(
2297 self,

Callers

nothing calls this directly

Calls 3

TriggerLazyImportFunction · 0.90
chainFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected