MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / modulate

Function modulate

sat/dit_video_concat.py:438–439  ·  view source on GitHub ↗
(x, shift, scale)

Source from the content-addressed store, hash-verified

436
437
438def modulate(x, shift, scale):
439 return x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
440
441
442def unpatchify(x, c, p, w, h, rope_position_ids=None, **kwargs):

Callers 4

separate_modulateMethod · 0.85
final_forwardMethod · 0.85
separate_modulateMethod · 0.85
layer_forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected