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 onnx type inference issue (#20130)
Browse files Browse the repository at this point in the history
* fix type inference issue

* Update _export_onnx.py
  • Loading branch information
Zha0q1 authored Apr 8, 2021
1 parent 5b7826e commit a2af352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/mxnet/onnx/mx2onnx/_export_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import logging
import json

import numpy as np
from mxnet import ndarray as nd


Expand Down Expand Up @@ -290,7 +291,7 @@ def create_onnx_graph_proto(self, sym, params, in_shapes, in_types, verbose=Fals
class NodeOutput:
def __init__(self, name, dtype):
self.name = name
self.dtype = dtype
self.dtype = np.dtype(dtype)

initializer = []
all_processed_nodes = []
Expand Down

0 comments on commit a2af352

Please sign in to comment.