(self, dim0: int, dim1: int)
| 65 | |
| 66 | class Transpose(torch.nn.Module): |
| 67 | def __init__(self, dim0: int, dim1: int): |
| 68 | super().__init__() |
| 69 | self.dim0 = dim0 |
| 70 | self.dim1 = dim1 |
| 71 | |
| 72 | def forward(self, x: torch.Tensor): |
| 73 | x = torch.transpose(x, self.dim0, self.dim1) |