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

Method __init__

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

Source from the content-addressed store, hash-verified

144
145class ModuleAddMul(torch.nn.Module):
146 def __init__(self):
147 super().__init__()
148 self.a = 3 * torch.ones(2, 2, dtype=torch.float)
149 self.b = 2 * torch.ones(2, 2, dtype=torch.float)
150
151 def forward(self, x: torch.Tensor):
152 out_1 = torch.mul(self.a, x)

Callers

nothing calls this directly

Calls 2

onesMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected