onnx-coreml
onnx-coreml copied to clipboard
Unsupported ONNX ops of type: Range
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?
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?
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.
Yes, any news on opset v11 support for onnx-coreml?
Ping, also experiencing this!
opset10, how walk around it ?