MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / fa

Function fa

examples/DoReFa-Net/dorefa.py:38–41  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

36 return 2 * quantize(x, bitW) - 1
37
38 def fa(x):
39 if bitA == 32:
40 return x
41 return quantize(x, bitA)
42
43 def fg(x):
44 if bitG == 32:

Callers 3

activateMethod · 0.70
activateMethod · 0.70
activateMethod · 0.70

Calls 1

quantizeFunction · 0.85

Tested by

no test coverage detected