MCPcopy Create free account
hub / github.com/FunAudioLLM/FunMusic / __init__

Method __init__

inspiremusic/flow/decoder.py:21–24  ·  view source on GitHub ↗
(self, dim0: int, dim1: int)

Source from the content-addressed store, hash-verified

19
20class Transpose(torch.nn.Module):
21 def __init__(self, dim0: int, dim1: int):
22 super().__init__()
23 self.dim0 = dim0
24 self.dim1 = dim1
25
26 def forward(self, x: torch.Tensor):
27 x = torch.transpose(x, self.dim0, self.dim1)

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected