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

Method __init__

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

Source from the content-addressed store, hash-verified

42
43class Residual(nn.Module):
44 def __init__(self, fn):
45 super().__init__()
46 self.fn = fn
47
48 def forward(self, x, *args, **kwargs):
49 return self.fn(x, *args, **kwargs) + x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected