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

Class DelegateAdd

exir/tests/models.py:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 super().__init__()
163
164 class DelegateAdd(nn.Module):
165 def __init__(self) -> None:
166 super().__init__()
167
168 def forward(self, x: Tensor, y: Tensor) -> Tensor:
169 return [x + y]
170
171 def get_random_inputs(self) -> Tuple[Tensor, Tensor]:
172 return (torch.randn(1, 3), torch.randn(1, 3))
173
174 delegated_m = DelegateAdd()
175 edge_ir_m = to_edge(

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected