MCPcopy
hub / github.com/ermongroup/ddim / nonlinearity

Function nonlinearity

models/diffusion.py:27–29  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

25
26
27def nonlinearity(x):
28 # swish
29 return x*torch.sigmoid(x)
30
31
32def Normalize(in_channels):

Callers 2

forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected