diff --git a/python/mxnet/onnx/mx2onnx/_op_translations/__init__.py b/python/mxnet/onnx/mx2onnx/_op_translations/__init__.py new file mode 100644 index 000000000000..ba26e207eb4c --- /dev/null +++ b/python/mxnet/onnx/mx2onnx/_op_translations/__init__.py @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# coding: utf-8 +"""ONNX export op translation""" + +from . import _op_translations_opset12 +from . import _op_translations_opset13 diff --git a/python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py b/python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py index d0176d1a5197..df137644b151 100644 --- a/python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py +++ b/python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py @@ -1282,7 +1282,7 @@ def convert_slice_channel(node, **kwargs): squeeze_axis = attrs.get('squeeze_axis', 'False') create_tensor([axis], name+'_axis', kwargs['initializer']) - + nodes = [] if squeeze_axis in ['True', '1']: nodes += [ diff --git a/tools/license_header.py b/tools/license_header.py index 387c4445b6f1..ccc45bdb3be1 100755 --- a/tools/license_header.py +++ b/tools/license_header.py @@ -124,7 +124,6 @@ # Dual-Licensed under Apache 2.0 and Nvidia BSD-3 'python/mxnet/onnx/mx2onnx/_export_onnx.py', - 'python/mxnet/onnx/mx2onnx/_op_translations.py', 'python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset12.py', 'python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py',