We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onnx.Resize
The ONNX operator onnx.Resize fails with Failed to legalize operation 'onnx.Resize' during lowering , as reported in #812
Failed to legalize operation 'onnx.Resize'
module { func.func @torch_jit(%arg0: !torch.vtensor<[1,3,240,240],f32>, %arg1: !torch.vtensor<[4],si64>) -> !torch.vtensor<[1,3,224,224],f32> attributes {torch.onnx_meta.ir_version = 7 : si64, torch.onnx_meta.opset_version = 21 : si64, torch.onnx_meta.producer_name = "pytorch", torch.onnx_meta.producer_version = "1.12.1"} { %none = torch.constant.none %497 = torch.operator "onnx.Resize"(%arg0, %none, %none, %arg1) {torch.onnx.coordinate_transformation_mode = "pytorch_half_pixel", torch.onnx.cubic_coeff_a = -7.500000e-01 : f32, torch.onnx.mode = "cubic", torch.onnx.nearest_mode = "floor"} : (!torch.vtensor<[1,3,240,240],f32>, !torch.none, !torch.none, !torch.vtensor<[4],si64>) -> !torch.vtensor<[1,3,224,224],f32> return %497 : !torch.vtensor<[1,3,224,224],f32> } }
command to reproduce:
torch-mlir-opt -split-input-file -verify-diagnostics -convert-torch-onnx-to-torch --mlir-print-ir-after-all t1.mlir
The text was updated successfully, but these errors were encountered:
@aldesilv seems to have worked on this (llvm/torch-mlir@ec6d7aa )
Sorry, something went wrong.
We are not seeing this issue anymore in ONNX models so closing this
aldesilv
No branches or pull requests
The ONNX operator
onnx.Resize
fails withFailed to legalize operation 'onnx.Resize'
during lowering , as reported in #812command to reproduce:
The text was updated successfully, but these errors were encountered: