MCPcopy Create free account
hub / github.com/dek924/PerX2CT / nonlinearity

Function nonlinearity

taming/modules/diffusionmodules/model.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
34def Normalize(in_channels):

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected