MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / forward

Method forward

wan/modules/vae.py:51–54  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

49 self.bias = nn.Parameter(torch.zeros(shape)) if bias else 0.
50
51 def forward(self, x):
52 return F.normalize(
53 x, dim=(1 if self.channel_first else
54 -1)) * self.scale * self.gamma + self.bias
55
56
57class Upsample(nn.Upsample):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected