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

Method __init__

usr/diff/shallow_diffusion_tts.py:91–94  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

89
90class Rezero(nn.Module):
91 def __init__(self, fn):
92 super().__init__()
93 self.fn = fn
94 self.g = nn.Parameter(torch.zeros(1))
95
96 def forward(self, x):
97 return self.fn(x) * self.g

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected