MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / nonlinearity

Function nonlinearity

sat/sgm/modules/autoencoding/vqvae/movq_dec_3d_dev.py:48–50  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

46
47
48def nonlinearity(x):
49 # swish
50 return x * torch.sigmoid(x)
51
52
53class SpatialNorm3D(nn.Module):

Callers 3

forwardMethod · 0.70
forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected