MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / forward

Method forward

models/transformer/wan/modules/tm2m_model.py:548–553  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

546 self.register_buffer('pe', pe)
547
548 def forward(self, x):
549 # x: [B, T, C]
550 x = x.permute(1, 0, 2)
551 x = x + self.pe[:x.size(0), :]
552 x = x.permute(1, 0, 2)
553 return x
554
555class WanModelTM2M(nn.Module):
556

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected