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

Method __init__

fireredtts2/codec/decoder.py:67–70  ·  view source on GitHub ↗
(self, dim0: int, dim1: int)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected