Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dek924/PerX2CT
/ nonlinearity
Function
nonlinearity
taming/modules/diffusionmodules/model.py:29–31 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
27
28
29
def
nonlinearity(x):
30
# swish
31
return
x*torch.sigmoid(x)
32
33
34
def
Normalize(in_channels):
Callers
7
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected