From 49ca3a32edf6cec1f34671ad7c189e1e195e5e04 Mon Sep 17 00:00:00 2001 From: Dang Qingqing Date: Fri, 21 Sep 2018 05:13:39 +0000 Subject: [PATCH] Fix function name. --- python/paddle/fluid/contrib/quantize/quantize_transpiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/contrib/quantize/quantize_transpiler.py b/python/paddle/fluid/contrib/quantize/quantize_transpiler.py index b04c3508274..4b4b81d2de6 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() -- GitLab