MCPcopy Create free account
hub / github.com/FireRedTeam/FireRedTTS2 / Transpose

Class Transpose

fireredtts2/codec/decoder.py:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66class 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)
74 return x
75
76
77# A causal variant of Conv1d

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected