diff --git a/python/paddle/fluid/dygraph/math_op_patch.py b/python/paddle/fluid/dygraph/math_op_patch.py index dbd8d803f66d9e26978121a46d7b7676ab53c173..8e4752999b63292d2b82affa64dbf6d26a8b453e 100644 --- a/python/paddle/fluid/dygraph/math_op_patch.py +++ b/python/paddle/fluid/dygraph/math_op_patch.py @@ -195,7 +195,7 @@ def monkey_patch_math_varbase(): axis = -1 math_op = getattr(core.ops, op_type) - return math_op(self, other_var, 'aixs', axis) + return math_op(self, other_var, 'axis', axis) comment = OpProtoHolder.instance().get_op_proto(op_type).comment