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

Method __init__

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

Source from the content-addressed store, hash-verified

117
118class Transpose(nn.Module):
119 def __init__(self) -> None:
120 super().__init__()
121
122 def forward(self, x: Tensor, dim0: int, dim1: int) -> Tensor:
123 return x.transpose(dim0, dim1)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected