-
Notifications
You must be signed in to change notification settings - Fork 6.8k
mxnet_coreml_converter unsupported type error #13965
Comments
@mxnet-label-bot add [Python] |
Short answer - op variable needs to contain layers that are in MXNET_LAYER_REGISTRY Why? I found that : Most likely reason why it's giving
is mentioned Your error is thrown because of this line which is triggered when the layer variable isn't part of the MXNet layer registry (i.e. permissible layers) Permissible layers are
Hope this helps. Solution - Use only above permitted layers. |
_copy is an mxnet operator (see e.g. https://github.com/apache/incubator-mxnet/blob/25e915bd401f7ac4c639c935f775deccebec96d3/python/mxnet/contrib/onnx/mx2onnx/_op_translations.py#L720 ), and above json snippet in #13965 (comment) is what I am getting from mxnet. Either there a way of telling mxnet to avoid using the _copy operator, in which case the solution needs to be to mention it in the docs as I couldn't find it there, https://mxnet.incubator.apache.org/versions/master/search.html?q=_copy+layer&check_keywords=yes&area=default# https://mxnet.incubator.apache.org/versions/master/search.html?q=_copy+operator# being the searches I tried, or if there's no way of telling mxnet not to use the _copy operator, then the solution would be add it to this conversion tool as a feature request (since convolution is supported by above list, perhaps first rewrite it as convolution with Kronecker delta function?). |
Yes, copy is an MXNet operator. My previous comment doesn't deny that. incubator-mxnet/tools/coreml/converter/_layers.py Only 12 layers are currently mentioned here which can be converted from MXNet to CoreML, at the moment. I have created an issue as a Feature Request to add "Copy" operator to MXNet to CoreML convertor. Thanks for bringing this issue up. |
Hi @ChaiBapchya - many thanks for opening the feature request. Closing this issue in favour of that one. |
Description
Environment info (Required)
Package used (Python/R/Scala/Julia):
Python.
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
clang
MXNet commit hash:
Have installed via
pip install mxnet-to-coreml
which returns the following version numbers:Error Message:
Per description
Minimum reproducible example & steps to reproduce:
command
I can't share all of the model file but the problem appears to be right at the start of image-classification-symbol.json
The text was updated successfully, but these errors were encountered: