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

Method forward

test/models/linear_model.py:16–19  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

14 self.b = 2 * torch.ones(2, 2, dtype=torch.float)
15
16 def forward(self, x: torch.Tensor):
17 out_1 = torch.mul(self.a, x)
18 out_2 = torch.add(out_1, self.b)
19 return out_2

Callers

nothing calls this directly

Calls 2

mulMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected