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

Method __init__

exir/tests/models.py:96–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94
95class Identity(nn.Module):
96 def __init__(self) -> None:
97 super().__init__()
98
99 def forward(self, input: Tensor) -> Tensor:
100 return torch.clone(input)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected