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

Method __init__

exir/tests/models.py:196–201  ·  view source on GitHub ↗
(self, transposed: bool = False)

Source from the content-addressed store, hash-verified

194
195class BatchMatrixMultiplication(nn.Module):
196 def __init__(self, transposed: bool = False) -> None:
197 super().__init__()
198
199 # Whether the last 2 dims (-1, -2) of the input has already been
200 # transposed. If yes, transpose it back before feeding to torch.bmm
201 self.transposed: bool = transposed
202
203 def forward(self, x: Tensor, y: Tensor) -> Tensor:
204 if self.transposed:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected