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

Function modulate

diffsynth/models/omnigen.py:191–192  ·  view source on GitHub ↗
(x, shift, scale)

Source from the content-addressed store, hash-verified

189
190
191def modulate(x, shift, scale):
192 return x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
193
194
195class TimestepEmbedder(nn.Module):

Callers 1

forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected