MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / forward

Method forward

architecture/autoencoder_kl_wan.py:455–466  ·  view source on GitHub ↗
(self, x, feat_cache=None, feat_idx=[0])

Source from the content-addressed store, hash-verified

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
469class WanResidualDownBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected