Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[v1.x] fix mx2onnx wheel (#20157)
Browse files Browse the repository at this point in the history
* move _op_translation files

* fix header checker path

* Update _op_translations_opset13.py

* fix

* fix
  • Loading branch information
Zha0q1 committed Apr 15, 2021
1 parent 79e0ae7 commit 37faacd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
22 changes: 22 additions & 0 deletions python/mxnet/onnx/mx2onnx/_op_translations/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 += [
Expand Down
1 change: 0 additions & 1 deletion tools/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down

0 comments on commit 37faacd

Please sign in to comment.