Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorpack/tensorpack
/ activate
Method
activate
examples/DoReFa-Net/alexnet-dorefa.py:88–89 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
86
return
tf.clip_by_value(x, 0.0, 1.0)
87
88
def
activate(x):
89
return
fa(nonlin(x))
90
91
with
remap_variables(new_get_variable), \
92
argscope([Conv2D, BatchNorm, MaxPooling], data_format=
'channels_first'
), \
Callers
nothing calls this directly
Calls
2
nonlin
Function · 0.85
fa
Function · 0.70
Tested by
no test coverage detected