MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / __init__

Method __init__

modules/fastspeech/tts_modules.py:43–46  ·  view source on GitHub ↗

Construct an LayerNorm object.

(self, nout, dim=-1)

Source from the content-addressed store, hash-verified

41 """
42
43 def __init__(self, nout, dim=-1):
44 """Construct an LayerNorm object."""
45 super(LayerNorm, self).__init__(nout, eps=1e-12)
46 self.dim = dim
47
48 def forward(self, x):
49 """Apply layer normalization.

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__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