This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
Unsupported ONNX ops of type: Range #553
Labels
question
Response providing clarification needed. Will not be assigned to a release. (type)
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 toEqual
. It was discovered that my model (despite using all the latest libs) was reporting Opset v9. Specifyingopset_version=11
in myonnx.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?The text was updated successfully, but these errors were encountered: