MCPcopy
hub / github.com/hojonathanho/diffusion / nonlinearity

Function nonlinearity

diffusion_tf/models/unet.py:7–8  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

5
6
7def nonlinearity(x):
8 return tf.nn.swish(x)
9
10
11def normalize(x, *, temb, name):

Callers 2

resnet_blockFunction · 0.85
modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected