Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
7
def
nonlinearity(x):
8
return
tf.nn.swish(x)
9
10
11
def
normalize(x, *, temb, name):
Callers
2
resnet_block
Function · 0.85
model
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected