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

Method forward

diffsynth/models/stepvideo_vae.py:25–29  ·  view source on GitHub ↗
(self, x, zero_pad=False, **kwargs)

Source from the content-addressed store, hash-verified

23 super().__init__(num_groups=num_groups, num_channels=num_channels)
24
25 def forward(self, x, zero_pad=False, **kwargs):
26 if zero_pad:
27 return base_group_norm_with_zero_pad(x, self, **kwargs)
28 else:
29 return base_group_norm(x, self, **kwargs)
30
31
32def base_group_norm(x, norm_layer, act_silu=False, channel_last=False):

Callers

nothing calls this directly

Calls 2

base_group_normFunction · 0.85

Tested by

no test coverage detected