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

Method __init__

test/models/export_program.py:162–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160# Used for program-data-separation.
161class ModuleLinear(torch.nn.Module):
162 def __init__(self):
163 super().__init__()
164 self.linear = torch.nn.Linear(3, 3)
165
166 def forward(self, x: torch.Tensor):
167 return self.linear(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected