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

Method __init__

inspiremusic/transformer/embedding.py:182–185  ·  view source on GitHub ↗
(self, d_model: int, dropout_rate: float)

Source from the content-addressed store, hash-verified

180 """
181
182 def __init__(self, d_model: int, dropout_rate: float):
183 super().__init__()
184 self.d_model = d_model
185 self.dropout = torch.nn.Dropout(p=dropout_rate)
186
187 def forward(self,
188 x: torch.Tensor,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected