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

Class Forward

exir/program/test/test_program.py:151–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150def get_exported_programs() -> Dict[str, ExportedProgram]:
151 class Forward(torch.nn.Module):
152 def forward(self, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
153 z = torch.mul(x, y)
154 return torch.add(z, x)
155
156 forward = Forward()
157

Callers 1

get_exported_programsFunction · 0.85

Calls

no outgoing calls

Tested by 1

get_exported_programsFunction · 0.68