MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / nonlinearity

Function nonlinearity

ldm/modules/diffusionmodules/model.py:48–50  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

46
47
48def nonlinearity(x):
49 # swish
50 return x*torch.sigmoid(x)
51
52
53def Normalize(in_channels, num_groups=32):

Callers 6

forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected