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

Method __init__

usr/diff/shallow_diffusion_tts.py:53–55  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

51
52class SinusoidalPosEmb(nn.Module):
53 def __init__(self, dim):
54 super().__init__()
55 self.dim = dim
56
57 def forward(self, x):
58 device = x.device

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected