torch-mlir-opt doesn't support a case for onnx.QLinearConv conversion #18124
Labels
bug 🐞
Something isn't working
integrations/onnx
ONNX integration work
integrations/pytorch
PyTorch integration work
What happened?
I converted an ONNX model resnet50-v1-12-int8.onnx to mlir using import_onnx tool that completed successfully.
python -m torch_mlir.tools.import_onnx resnet50-v1-12-int8.onnx -o restnet50-v1-12.int8.onnx.mlir
However when converting the torch-onnx to torch using the torch-mlir-opt tool, it fails to convert
onnx.QLinearConv
operator.This operator is currently marked as completed on the op tracker nod-ai/SHARK-ModelDev#215
I can reproduce the same issue with
iree-import-onnx
tool followed byiree-compile
.Steps to reproduce your issue
python -m torch_mlir.tools.import_onnx resnet50-v1-12-int8.onnx -o restnet50-v1-12.int8.onnx.mlir
./build/bin/torch-mlir-opt --convert-torch-onnx-to-torch restnet50-v1-12.int8.onnx.mlir -o restnet50-v1-12.int8.mlir
The onnx model can be downloaded from https://github.com/onnx/models
What component(s) does this issue relate to?
Frontends, MLIR
Version information
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: