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

Class NNModuleSource

torch/_dynamo/source.py:397–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395
396@dataclasses.dataclass(frozen=True)
397class NNModuleSource(ChainedSource):
398 def reconstruct(self, codegen):
399 return self.base.reconstruct(codegen)
400
401 def guard_source(self):
402 return _GUARD_SOURCE_NN_MODULE[self.base.guard_source()]
403
404 def name(self):
405 return self.base.name()
406
407
408@dataclasses.dataclass(frozen=True)

Callers 8

add_subgraphFunction · 0.85
unpack_var_sequenceMethod · 0.85
call_hasattrMethod · 0.85
var_getattrMethod · 0.85
call_functionMethod · 0.85
call_methodMethod · 0.85
wrap_valuesMethod · 0.85
named_embedMethod · 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…