Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ nonlinearity
Function
nonlinearity
sat/sgm/modules/autoencoding/vqvae/movq_modules.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
class
SpatialNorm(nn.Module):
Callers
3
forward
Method · 0.70
forward
Method · 0.70
forward_with_features_output
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected