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

Method __init__

inspiremusic/transformer/embedding.py:129–131  ·  view source on GitHub ↗

Initialize class.

(self, d_model: int, dropout_rate: float, max_len: int = 5000)

Source from the content-addressed store, hash-verified

127 """
128
129 def __init__(self, d_model: int, dropout_rate: float, max_len: int = 5000):
130 """Initialize class."""
131 super().__init__(d_model, dropout_rate, max_len, reverse=True)
132
133 def forward(self,
134 x: torch.Tensor,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected