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

Function modulate

diffsynth/models/wan_video_dit.py:239–240  ·  view source on GitHub ↗
(x: torch.Tensor, shift: torch.Tensor, scale: torch.Tensor)

Source from the content-addressed store, hash-verified

237
238
239def modulate(x: torch.Tensor, shift: torch.Tensor, scale: torch.Tensor):
240 return (x * (1 + scale) + shift)
241
242
243def sinusoidal_embedding_1d(dim, position):

Callers 1

forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected