(self, x)
| 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 | |
| 555 | class WanModelTM2M(nn.Module): |
| 556 |
nothing calls this directly
no outgoing calls
no test coverage detected