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

Method forward

test/end2end/test_end2end.py:121–122  ·  view source on GitHub ↗
(self, x: torch.Tensor, y: torch.Tensor, c: float)

Source from the content-addressed store, hash-verified

119 super(ModuleFloatAddWithAlpha, self).__init__()
120
121 def forward(self, x: torch.Tensor, y: torch.Tensor, c: float):
122 return torch.add(x, y, alpha=c)
123
124 def get_random_inputs(self):
125 return (torch.randn(2, 2), torch.randn(2, 2), random.random())

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected