MCPcopy 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
29def nonlinearity(x):
30 # swish
31 return x * torch.sigmoid(x)
32
33
34class SpatialNorm(nn.Module):

Callers 3

forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected