Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorpack/tensorpack
/ activate
Method
activate
examples/DoReFa-Net/svhn-digit-dorefa.py:65–66 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
63
return
tf.clip_by_value(x, 0.0, 1.0)
64
65
def
activate(x):
66
return
fa(nonlin(x))
67
68
image = image / 256.0
69
Callers
nothing calls this directly
Calls
2
nonlin
Function · 0.85
fa
Function · 0.70
Tested by
no test coverage detected