Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alpha-VLLM/LLaMA2-Accessory
/ modulate
Function
modulate
Large-DiT-ImageNet/models.py:28–29 ·
view source on GitHub ↗
(x, shift, scale)
Source
from the content-addressed store, hash-verified
26
27
28
def
modulate(x, shift, scale):
29
return
x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
30
31
32
#############################################################################
Callers
2
forward
Method · 0.70
forward
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected