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

Method forward

usr/diff/diffusion.py:127–131  ·  view source on GitHub ↗
(self, x, time_emb)

Source from the content-addressed store, hash-verified

125 self.res_conv = nn.Conv2d(dim, dim_out, 1) if dim != dim_out else nn.Identity()
126
127 def forward(self, x, time_emb):
128 h = self.block1(x)
129 h += self.mlp(time_emb)[:, :, None, None]
130 h = self.block2(h)
131 return h + self.res_conv(x)
132
133
134class LinearAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected