(self, x, feat_cache=None, feat_idx=[0])
| 453 | self.gradient_checkpointing = False |
| 454 | |
| 455 | def forward(self, x, feat_cache=None, feat_idx=[0]): |
| 456 | # First residual block |
| 457 | x = self.resnets[0](x, feat_cache, feat_idx) |
| 458 | |
| 459 | # Process through attention and residual blocks |
| 460 | for attn, resnet in zip(self.attentions, self.resnets[1:]): |
| 461 | if attn is not None: |
| 462 | x = attn(x) |
| 463 | |
| 464 | x = resnet(x, feat_cache, feat_idx) |
| 465 | |
| 466 | return x |
| 467 | |
| 468 | |
| 469 | class WanResidualDownBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected