| 40 | |
| 41 | |
| 42 | class Transpose(nn.Module): |
| 43 | def __init__(self, dim0, dim1): |
| 44 | super(Transpose, self).__init__() |
| 45 | self.dim0 = dim0 |
| 46 | self.dim1 = dim1 |
| 47 | |
| 48 | def forward(self, x): |
| 49 | x = x.transpose(self.dim0, self.dim1) |
| 50 | return x |
| 51 | |
| 52 | |
| 53 | activations = {} |
no outgoing calls
no test coverage detected