|View source on GitHub|
Rewrites an eval input_graph in place for simulated quantization.
tf.contrib.quantize.create_eval_graph( input_graph=None )
Variables added by the rewrite get added to the global variables collection.
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.|
||If elements contains an element that isn't a tf.Tensor or tf.Operation.|