MCPcopy Create free account
hub / github.com/MYZY-AI/Muyan-TTS / __init__

Method __init__

sovits/models.py:687–690  ·  view source on GitHub ↗
(self, n_e, e_dim)

Source from the content-addressed store, hash-verified

685
686class Quantizer_module(torch.nn.Module):
687 def __init__(self, n_e, e_dim):
688 super(Quantizer_module, self).__init__()
689 self.embedding = nn.Embedding(n_e, e_dim)
690 self.embedding.weight.data.uniform_(-1.0 / n_e, 1.0 / n_e)
691
692 def forward(self, x):
693 d = (

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected