MCPcopy Create free account
hub / github.com/LTH14/mar / modulate

Function modulate

models/diffloss.py:55–56  ·  view source on GitHub ↗
(x, shift, scale)

Source from the content-addressed store, hash-verified

53
54
55def modulate(x, shift, scale):
56 return x * (1 + scale) + shift
57
58
59class TimestepEmbedder(nn.Module):

Callers 2

forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected