Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
27
def
nonlinearity(x):
28
# swish
29
return
x*torch.sigmoid(x)
30
31
32
def
Normalize(in_channels):
Callers
2
forward
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected