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

Method forward

wan/modules/t5.py:66–71  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

64 self.weight = nn.Parameter(torch.ones(dim))
65
66 def forward(self, x):
67 x = x * torch.rsqrt(x.float().pow(2).mean(dim=-1, keepdim=True) +
68 self.eps)
69 if self.weight.dtype in [torch.float16, torch.bfloat16]:
70 x = x.type_as(self.weight)
71 return self.weight * x
72
73
74class T5Attention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected