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

Quantized Grouped Convolution Support #678

Closed
zjgarvey opened this issue May 13, 2024 · 1 comment
Closed

Quantized Grouped Convolution Support #678

zjgarvey opened this issue May 13, 2024 · 1 comment
Assignees

Comments

@zjgarvey
Copy link
Collaborator

I am seeing 7 models failing due to quantized grouped convolutions being unsupported.

  • MobileNetV3_small_vaiq_int8
  • RegNet_y_8gf_vaiq_int8
  • ShuffleNet_v2_x2_0_vaiq_int8
  • MNASNet_1_3_vaiq_int8
  • LRASPP_vaiq_int8
  • EfficientNet_v2_s_vaiq_int8
  • ConvNeXt_vaiq_int8

For example,

ConvNeXt_vaiq_int8.default.torch-onnx.mlir:406:12: error: failed to legalize operation 'torch.aten.convolution' that was explicitly marked illegal
    %402 = torch.operator "onnx.Conv"(%389, %395, %401) {torch.onnx.dilations = [1 : si64, 1 : si64], torch.onnx.group = 128 : si64, torch.onnx.kernel_shape = [7 : si64, 7 : si64], torch.onnx.pads = [3 : si64, 3 : si64, 3 : si64, 3 : si64], torch.onnx.strides = [1 : si64, 1 : si64]} : (!torch.vtensor<[1,128,56,56],f32>, !torch.vtensor<[128,1,7,7],f32>, !torch.vtensor<[128],f32>) -> !torch.vtensor<[1,128,56,56],f32> 
           ^
ConvNeXt_vaiq_int8.default.torch-onnx.mlir:406:12: note: see current operation: %972 = "torch.aten.convolution"(%960, %962, %971, %454, %934, %454, %45, %453, %37) : (!torch.vtensor<[1,128,56,56],!torch.qint8>, !torch.vtensor<[128,1,7,7],!torch.qint8>, !torch.vtensor<[128],si32>, !torch.list<int>, !torch.list<int>, !torch.list<int>, !torch.bool, !torch.list<int>, !torch.int) -> !torch.vtensor<[1,128,56,56],si32>
@zjgarvey zjgarvey self-assigned this May 13, 2024
@zjgarvey
Copy link
Collaborator Author

zjgarvey commented Jun 3, 2024

PR llvm/torch-mlir#3341 merged so closing.

@zjgarvey zjgarvey closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant