Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/LTH14/mar
/ nonlinearity
Function
nonlinearity
models/vae.py:8–10 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
6
7
8
def
nonlinearity(x):
9
# swish
10
return
x * torch.sigmoid(x)
11
12
13
def
Normalize(in_channels, num_groups=32):
Callers
3
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected