MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/stepvideo_dit.py:736–743  ·  view source on GitHub ↗
(self, latent)

Source from the content-addressed store, hash-verified

734 )
735
736 def forward(self, latent):
737 latent = self.proj(latent).to(latent.dtype)
738 if self.flatten:
739 latent = latent.flatten(2).transpose(1, 2) # BCHW -> BNC
740 if self.layer_norm:
741 latent = self.norm(latent)
742
743 return latent
744
745
746class StepVideoModel(torch.nn.Module):

Callers

nothing calls this directly

Calls 2

normMethod · 0.80
toMethod · 0.45

Tested by

no test coverage detected