提交 49ca3a32 编写于 作者: D Dang Qingqing

Fix function name.

上级 cc94b157
...@@ -198,7 +198,7 @@ class QuantizeTranspiler(object): ...@@ -198,7 +198,7 @@ class QuantizeTranspiler(object):
(op.type)) (op.type))
with program_guard(program, startup_program): with program_guard(program, startup_program):
self._create_globael_step() self._create_global_step()
for block in program.blocks: for block in program.blocks:
ops = list(block.ops) ops = list(block.ops)
block_id = block.idx block_id = block.idx
...@@ -210,7 +210,7 @@ class QuantizeTranspiler(object): ...@@ -210,7 +210,7 @@ class QuantizeTranspiler(object):
if op.type in grad_op_types: if op.type in grad_op_types:
_transpile_backward(block, op) _transpile_backward(block, op)
def _create_globael_step(self): def _create_global_step(self):
if self.weight_quantize_type == 'range_abs_max' or \ if self.weight_quantize_type == 'range_abs_max' or \
self.activation_quantize_type == 'range_abs_max': self.activation_quantize_type == 'range_abs_max':
self.global_step = autoincreased_step_counter() self.global_step = autoincreased_step_counter()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册