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

Method __init__

usr/diff/shallow_diffusion_tts.py:103–109  ·  view source on GitHub ↗
(self, dim, dim_out, groups=8)

Source from the content-addressed store, hash-verified

101
102class Block(nn.Module):
103 def __init__(self, dim, dim_out, groups=8):
104 super().__init__()
105 self.block = nn.Sequential(
106 nn.Conv2d(dim, dim_out, 3, padding=1),
107 nn.GroupNorm(groups, dim_out),
108 Mish()
109 )
110
111 def forward(self, x):
112 return self.block(x)

Callers 8

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

Calls 1

MishClass · 0.70

Tested by

no test coverage detected