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

Method forward

test/end2end/test_end2end.py:132–133  ·  view source on GitHub ↗
(self, x: torch.Tensor, y: torch.Tensor, c: int)

Source from the content-addressed store, hash-verified

130 super(ModuleIntAddWithAlpha, self).__init__()
131
132 def forward(self, x: torch.Tensor, y: torch.Tensor, c: int):
133 return torch.add(x, y, alpha=c)
134
135 def get_random_inputs(self):
136 return (

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected