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

Method forward

wan/modules/multitalk_model.py:103–112  ·  view source on GitHub ↗
(self, inputs: torch.Tensor)

Source from the content-addressed store, hash-verified

101 super().__init__(dim, elementwise_affine=elementwise_affine, eps=eps)
102
103 def forward(self, inputs: torch.Tensor) -> torch.Tensor:
104 origin_dtype = inputs.dtype
105 out = F.layer_norm(
106 inputs.float(),
107 self.normalized_shape,
108 None if self.weight is None else self.weight.float(),
109 None if self.bias is None else self.bias.float() ,
110 self.eps
111 ).to(origin_dtype)
112 return out
113
114
115class WanSelfAttention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected