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

Function nonlinearity

sat/sgm/modules/diffusionmodules/model.py:44–46  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

42
43
44def nonlinearity(x):
45 # swish
46 return x * torch.sigmoid(x)
47
48
49def Normalize(in_channels, num_groups=32):

Callers 4

forwardMethod · 0.70
forwardMethod · 0.70
forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected