Skip to content
New issue

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

pytorch-3dunet_vaiq_int8 model support #192

Open
AmosLewis opened this issue Apr 22, 2024 · 1 comment
Open

pytorch-3dunet_vaiq_int8 model support #192

AmosLewis opened this issue Apr 22, 2024 · 1 comment
Labels

Comments

@AmosLewis
Copy link
Collaborator

Failed ops in mlir patch pytorch-3dunet_vaiq_int8.default.onnx.torch.elide.mlir

%1777 = torch.operator "onnx.Resize"(%1716, %none, %none, %1776) {torch.onnx.coordinate_transformation_mode = "asymmetric", torch.onnx.cubic_coeff_a = -7.500000e-01 : f32, torch.onnx.mode = "nearest", torch.onnx.nearest_mode = "floor"} : (!torch.vtensor<[?,256,?,?,?],f32>, !torch.none, !torch.none, !torch.vtensor<[5],si64>) -> !torch.vtensor<[?,?,?,?,?],f32>

%2262 = torch.operator "onnx.Resize"(%2201, %none, %none, %2261) {torch.onnx.coordinate_transformation_mode = "asymmetric", torch.onnx.cubic_coeff_a = -7.500000e-01 : f32, torch.onnx.mode = "nearest", torch.onnx.nearest_mode = "floor"} : (!torch.vtensor<[?,128,?,?,?],f32>, !torch.none, !torch.none, !torch.vtensor<[5],si64>) -> !torch.vtensor<[?,?,?,?,?],f32>

%2747 = torch.operator "onnx.Resize"(%2686, %none, %none, %2746) {torch.onnx.coordinate_transformation_mode = "asymmetric", torch.onnx.cubic_coeff_a = -7.500000e-01 : f32, torch.onnx.mode = "nearest", torch.onnx.nearest_mode = "floor"} : (!torch.vtensor<[?,64,?,?,?],f32>, !torch.none, !torch.none, !torch.vtensor<[5],si64>) -> !torch.vtensor<[?,?,?,?,?],f32>

@AmosLewis
Copy link
Collaborator Author

AmosLewis commented May 14, 2024

@aldesilv With iree-compiler bump torch-mlir to onnx.resize patch iree-org/iree#17358:
new error:

pytorch-3dunet_vaiq_int8.default.onnx.torch.mlir:503:12: error: 'tensor.cast' op operand type 'tensor<1x256x?x?x16xf32>' and result type 'tensor<1x256x16x32x32xf32>' are cast incompatible
    %461 = torch.aten.__interpolate.size_list_scale_list %459, %460, %none, %str, %false, %none, %false : !torch.vtensor<[1,256,8,16,16],f32>, !torch.list<int>, !torch.none, !torch.str, !torch.bool, !torch.none, !torch.bool -> !torch.vtensor<[1,256,16,32,32],f32>
           ^
pytorch-3dunet_vaiq_int8.default.onnx.torch.mlir:503:12: note: see current operation: %3778 = "tensor.cast"(%3777) : (tensor<1x256x?x?x16xf32>) -> tensor<1x256x16x32x32xf32>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant