Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceClear/StableSR
/ nonlinearity
Function
nonlinearity
ldm/modules/diffusionmodules/model.py:71–73 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
69
70
71
def
nonlinearity(x):
72
# swish
73
return
x*torch.sigmoid(x)
74
75
76
def
Normalize(in_channels, num_groups=32):
Callers
9
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected