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

Method __dir__

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

Source from the content-addressed store, hash-verified

303 op_type, *args, **kwargs)
304
305 def __dir__(self):
306 TriggerLazyImport()
307 additional_methods = [
308 op
309 for op in _REGISTERED_OPERATORS
310 if '_ENGINE_' not in op or '_ENGINE_CUDNN' in op]
311 return sorted(set(chain(
312 dir(type(self)),
313 self.__dict__.keys(),
314 additional_methods
315 )))
316
317
318def ScopedName(name):

Callers

nothing calls this directly

Calls 3

TriggerLazyImportFunction · 0.90
chainFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected