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

Class Basic

docs/source/tutorials_source/export-to-executorch-tutorial.py:95–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95class Basic(torch.nn.Module):
96 def __init__(self):
97 super().__init__()
98
99 def forward(self, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
100 return x + y
101
102
103example_args_2: tuple[torch.Tensor, torch.Tensor] = (

Calls

no outgoing calls

Tested by

no test coverage detected