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

Method __init__

torch/_export/unflatten.py:53–61  ·  view source on GitHub ↗
(
        self,
        graph: torch.fx.Graph,
        module_call_signature: Optional[ModuleCallSignature],
    )

Source from the content-addressed store, hash-verified

51 """
52
53 def __init__(
54 self,
55 graph: torch.fx.Graph,
56 module_call_signature: Optional[ModuleCallSignature],
57 ):
58 super().__init__()
59 self.graph = graph
60 self.graph.owning_module = self
61 self.module_call_signature = module_call_signature
62
63 def forward(self, *args, **kwargs):
64 assert self.graph_module is not None, "Didn't finalize this InterpreterModule"

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected