OutScaleForTrainingPass

class paddle.fluid.contrib.slim.quantization.quantization_pass. OutScaleForTrainingPass ( scope=None, place=None, moving_rate=0.9 ) [source]
apply ( graph )

apply

Insert the moving_average_abs_max_scale op in order to calculate output scales of operators in the teller_set.

Parameters

graph (IrGraph) – the target graph.