MCPcopy Create free account
hub / github.com/alibaba/nann / _InsertQuantOp

Function _InsertQuantOp

tensorflow/tensorflow/contrib/quantize/python/quantize.py:647–779  ·  view source on GitHub ↗

Inserts a quant op between a producer op and (multiple) consumer ops. Args: context: Context where producer and consumer operations are nested. name: Name for the new quantization op within the context. producer: Producer operation of the pairs where quantization will be inserte

(context,
                   name,
                   producer,
                   consumers,
                   is_training,
                   moving_avg=True,
                   init_min=-6.0,
                   init_max=6.0,
                   bits=8,
                   symmetric=False,
                   ema_decay=0.999,
                   quant_delay=None,
                   vars_collection=ops.GraphKeys.GLOBAL_VARIABLES,
                   narrow_range=False,
                   producer_scope=None,
                   consumer_scope=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

QuantizeFunction · 0.85

Calls 7

_AddContextToNameFunction · 0.85
_FollowedByFakeQuantFunction · 0.85
infoMethod · 0.80
get_name_scopeMethod · 0.80
appendMethod · 0.45
condMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected