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

Method __init__

modules/fastspeech/tts_modules.py:155–157  ·  view source on GitHub ↗
(self, pad_value=0.0)

Source from the content-addressed store, hash-verified

153
154class LengthRegulator(torch.nn.Module):
155 def __init__(self, pad_value=0.0):
156 super(LengthRegulator, self).__init__()
157 self.pad_value = pad_value
158
159 def forward(self, dur, dur_padding=None, alpha=1.0):
160 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected