Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShanghaiTech-IMPACT/TeethDreamer
/ nonlinearity
Function
nonlinearity
ldm/modules/diffusionmodules/model.py:33–35 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
31
32
33
def
nonlinearity(x):
34
# swish
35
return
x*torch.sigmoid(x)
36
37
38
def
Normalize(in_channels, num_groups=32):
Callers
7
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