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

Function nonlinearity

sat/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:43–45  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

41
42
43def nonlinearity(x):
44 # swish
45 return x * torch.sigmoid(x)
46
47
48class SpatialNorm3D(nn.Module):

Callers 3

forwardMethod · 0.70
forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected