diff --git a/python/paddle/fluid/contrib/quantize/quantize_transpiler.py b/python/paddle/fluid/contrib/quantize/quantize_transpiler.py index b04c35082748f88bf33cb4d5fa2f275eb8aefb5e..4b4b81d2de6d5de1052140daa3090d9042ef4c3c 100644 --- a/python/paddle/fluid/contrib/quantize/quantize_transpiler.py +++ b/python/paddle/fluid/contrib/quantize/quantize_transpiler.py @@ -198,7 +198,7 @@ class QuantizeTranspiler(object): (op.type)) with program_guard(program, startup_program): - self._create_globael_step() + self._create_global_step() for block in program.blocks: ops = list(block.ops) block_id = block.idx @@ -210,7 +210,7 @@ class QuantizeTranspiler(object): if op.type in grad_op_types: _transpile_backward(block, op) - def _create_globael_step(self): + def _create_global_step(self): if self.weight_quantize_type == 'range_abs_max' or \ self.activation_quantize_type == 'range_abs_max': self.global_step = autoincreased_step_counter()