MCPcopy
hub / github.com/LTH14/mar / nonlinearity

Function nonlinearity

models/vae.py:8–10  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

6
7
8def nonlinearity(x):
9 # swish
10 return x * torch.sigmoid(x)
11
12
13def Normalize(in_channels, num_groups=32):

Callers 3

forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected