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

Method forward

models/transformer/wan/modules/t2m_model.py:506–511  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

504 self.register_buffer('pe', pe)
505
506 def forward(self, x):
507 # x: [B, T, C]
508 x = x.permute(1, 0, 2)
509 x = x + self.pe[:x.size(0), :]
510 x = x.permute(1, 0, 2)
511 return x
512
513class WanModelT2M(nn.Module):
514

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected