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

Method __init__

usr/diff/diffusion.py:82–84  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

80
81class Downsample(nn.Module):
82 def __init__(self, dim):
83 super().__init__()
84 self.conv = nn.Conv2d(dim, dim, 3, 2, 1)
85
86 def forward(self, x):
87 return self.conv(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected