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

Method forward

wan/modules/t5.py:308–317  ·  view source on GitHub ↗
(self, ids, mask=None)

Source from the content-addressed store, hash-verified

306 self.apply(init_weights)
307
308 def forward(self, ids, mask=None):
309 x = self.token_embedding(ids)
310 x = self.dropout(x)
311 e = self.pos_embedding(x.size(1),
312 x.size(1)) if self.shared_pos else None
313 for block in self.blocks:
314 x = block(x, mask, pos_bias=e)
315 x = self.norm(x)
316 x = self.dropout(x)
317 return x
318
319
320class T5Decoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected