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

Import to gluon not working for ONNX model #11542

@ankkhedia

Description

@ankkhedia

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.

For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io

Description

I tried to import the below model to gluon from ONNX. However, the import failed.
https://s3.amazonaws.com/onnx-model-zoo/arcface/resnet100/resnet100.onnx
This is a public S3 bucket.

Package used (Python/R/Scala/Julia):
I'm using python

Error Message:

[07/03/18 11:56 AM] Acharya, Anirudh: ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
1 ctx = mx.cpu()
2 from mxnet.gluon import SymbolBlock
----> 3 net = SymbolBlock(outputs=sym, inputs=data_inputs)
4 net

/Users/aanirud/anaconda2/envs/mxnet2.7/lib/python2.7/site-packages/mxnet-1.3.0-py2.7.egg/mxnet/gluon/block.pyc in init(self, outputs, inputs, params)
1031 row_sparse_storage = ndarray.ndarray._STORAGE_TYPE_STR_TO_ID['row_sparse']
1032 for i in out:
-> 1033 for j in i.get_internals():
1034 assert(j.attr("storage_type") != str(row_sparse_storage)),
1035 "SymbolBlock doesn't support Parameter '%s' because its storage " \

/Users/aanirud/anaconda2/envs/mxnet2.7/lib/python2.7/site-packages/mxnet-1.3.0-py2.7.egg/mxnet/symbol/symbol.pyc in ((i,))
91
92 """
---> 93 return (self[i] for i in self.list_outputs())
94
95 def add(self, other):

/Users/aanirud/anaconda2/envs/mxnet2.7/lib/python2.7/site-packages/mxnet-1.3.0-py2.7.egg/mxnet/symbol/symbol.pyc in getitem(self, index)
515 if name == index:
516 if idx is not None:
--> 517 raise ValueError('There are multiple outputs with name "%s"' % index)
518 idx = i
519 if idx is None:

ValueError: There are multiple outputs with name "_mulscalar0_output"

Minimum reproducible example

Make a call to import_to_gluon API

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions