Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorpack/tensorpack
/ activate
Method
activate
examples/DoReFa-Net/resnet-dorefa.py:56–57 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
54
return
tf.clip_by_value(x, 0.0, 1.0)
55
56
def
activate(x):
57
return
fa(nonlin(x))
58
59
def
resblock(x, channel, stride):
60
def
get_stem_full(x):
Callers
nothing calls this directly
Calls
2
nonlin
Function · 0.85
fa
Function · 0.70
Tested by
no test coverage detected