MCPcopy 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
67def nonlinearity(x):
68 # swish
69 return x * torch.sigmoid(x)
70
71
72def leaky_relu(p=0.1):

Callers 3

forwardMethod · 0.70
forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected