MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / modulate

Function modulate

src/models/attention.py:18–19  ·  view source on GitHub ↗
(x, shift, scale)

Source from the content-addressed store, hash-verified

16 xformers = None
17
18def modulate(x, shift, scale):
19 return x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
20
21class TemporalBasicTransformerBlock(nn.Module):
22 def __init__(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected