Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ nonlinearity
Function
nonlinearity
sat/vae_modules/cp_enc_dec.py:67–69 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
65
66
67
def
nonlinearity(x):
68
# swish
69
return
x * torch.sigmoid(x)
70
71
72
def
leaky_relu(p=0.1):
Callers
3
forward
Method · 0.70
forward
Method · 0.70
forward
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected