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

[v1.x] fix onnx type inference issue #20130

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -276,7 +277,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