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

Method __init__

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

Source from the content-addressed store, hash-verified

172
173class ModuleMultipleEntry(torch.nn.Module):
174 def __init__(self):
175 super().__init__()
176 self.a = 3 * torch.ones(2, 2, dtype=torch.float)
177 self.b = 2 * torch.ones(2, 2, dtype=torch.float)
178
179 def forward(self, x: torch.Tensor):
180 return x + self.a

Callers

nothing calls this directly

Calls 2

onesMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected