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

Method __init__

examples/models/toy_model/model.py:28–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26
27class LinearModule(torch.nn.Module, EagerModelBase):
28 def __init__(self):
29 super().__init__()
30 self.linear = torch.nn.Linear(3, 3)
31
32 def forward(self, arg):
33 return self.linear(arg)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected