|View source on GitHub|
Rewrites an eval input_graph in place for simulated quantization.
tf.contrib.quantize.experimental_create_eval_graph( input_graph=None, weight_bits=8, activation_bits=8, symmetric=False, quant_delay=None, scope=None )
Variables added by the rewrite get added to the global variables collection.
This function has additional experimental options not (yet) available to create_eval_graph. The resulting behavior may be undefined.
The graph has fake quantization ops inserted to simulate the error introduced by quantization. Since the graph is transformed in place, the expected behavior of previously held references to nodes and tensors may change.
||The tf.Graph to be transformed, if None then defaults to the default graph.|
||Number of bits to use for quantizing weights.|
||Number of bits to use for quantizing activations.|
||If true, use symmetric quantization limits instead of training the minimum and maximum of each quantization range separately.|
||Number of steps after which weights and activations are quantized during eval.|
||The scope to be transformed. If it's not None, only the ops which are in this scope will be transformed.|
||If elements contains an element that isn't a tf.Tensor or tf.Operation.|