diff --git a/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py b/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py index 40131b42f562..aeaf4a1b9497 100644 --- a/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py +++ b/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py @@ -1502,7 +1502,7 @@ def convert_slice_axis(node, **kwargs): ends = attrs.get("end", None) if not ends or ends == 'None': # ONNX doesn't support None for ends. Since ends=None depicts - # length of dimension, passing INT_MAX in this case. + # length of dimension, passing dimension in this case. in_shape = kwargs['in_shape'][0] ends = in_shape[axes]