Skip to content

[ONNX Importer] Incorrect return type (!torch.none) for QLinear* ops from "com.microsoft" domain  #949

@pravg-amd

Description

@pravg-amd

Some of the onnx zoo models have" QLinearAdd" op which results in return type !torch.none on importing the model.

  %88 = torch.operator "onnx.QLinearAdd"(%87, %43, %42, %46, %47, %48, %45, %44) : (!torch.vtensor<[1,4096],ui8>, !torch.vtensor<[],f32>, !torch.vtensor<[],ui8>, !torch.vtensor<[4096],ui8>, !torch.vtensor<[],f32>, !torch.vtensor<[],ui8>, !torch.vtensor<[],f32>, !torch.vtensor<[],ui8>) -> !torch.none

Steps to reproduce:

Build SHARK-TestSuite by following the steps below

https://github.com/nod-ai/SHARK-TestSuite/tree/main/alt_e2eshark

Run the following command

python run.py -va -t bvlcalexnet-12-int8

The model will be available test-run/bvlcalexnet-12-int8/

bvlcalexnet-12-int8
squeezenet1.0-12-int8
caffenet-12-int8
densenet-12-int8
vgg16-12-int8
mobilenetv2-12-int8



Updated List*:

FasterRCNN-12-int8
MaskRCNN-12-int8
arcfaceresnet100-11-int8
bvlcalexnet-12-int8
caffenet-12-int8
efficientnet-lite4-11-int8
fcn-resnet50-12-int8
googlenet-12-int8
mnist-12-int8
mobilenetv2-12-int8
resnet50-v1-12-int8
shufflenet-v2-12-int8
ssd-12-int8
vgg16-12-int8
zfnet512-12-int8

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions