MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / forward

Method forward

moss_soundeffect_v2/diffsynth/models/wan_video_dit.py:214–215  ·  view source on GitHub ↗
(self, x, gate, residual)

Source from the content-addressed store, hash-verified

212 super().__init__()
213
214 def forward(self, x, gate, residual):
215 return x + gate * residual
216
217class DiTBlock(nn.Module):
218 def __init__(self, has_image_input: bool, dim: int, num_heads: int, ffn_dim: int, eps: float = 1e-6):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected