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

Unsupported ONNX ops of type: Range #553

Open
jbmaxwell opened this issue Mar 4, 2020 · 5 comments
Open

Unsupported ONNX ops of type: Range #553

jbmaxwell opened this issue Mar 4, 2020 · 5 comments
Labels
question Response providing clarification needed. Will not be assigned to a release. (type)

Comments

@jbmaxwell
Copy link

jbmaxwell commented Mar 4, 2020

I've been having trouble converting the Huggingface PyTorch DistilBert to CoreML. Initially the model converted but produced incorrect results when measured against PyTorch. Attempting to verify the ONNX model using onnxruntime I was blocked by an invalid type error relating to passing float to Equal. It was discovered that my model (despite using all the latest libs) was reporting Opset v9. Specifying opset_version=11 in my onnx.export() call did result in successful validation of the ONNX model against PyTorch. However, the addition also resulted in the above error. I have confirmed that changing the opset from v9 to v11 does add the Range node. I'm wondering if anyone could help resolving the problem? Perhaps a custom conversion function?

@jbmaxwell jbmaxwell added the question Response providing clarification needed. Will not be assigned to a release. (type) label Mar 4, 2020
@jbmaxwell
Copy link
Author

This definitely seems to be a change for Opset 11. Searching around the repo I don't see any references to an opset version > 10, so I'm assuming this is unsupported. Is there a workaround?

@s1ddok
Copy link

s1ddok commented Apr 9, 2020

I'm experiencing the same with another model. Had to migrate to opset 11 for Upsample and now it doesn't work because Range op is not found.

@jbmaxwell
Copy link
Author

Yes, any news on opset v11 support for onnx-coreml?

@vade
Copy link

vade commented Jan 3, 2021

Ping, also experiencing this!

@whcjb
Copy link

whcjb commented Mar 15, 2021

opset10, how walk around it ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Response providing clarification needed. Will not be assigned to a release. (type)
Projects
None yet
Development

No branches or pull requests

4 participants