-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weekly test current version_converter with all models from ONNX model…
… Zoo (onnx#4040) * test upgrade Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com> * add config and version_converter test Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com> * fix lint Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com> * fix mypy Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com> Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
- Loading branch information
Showing
2 changed files
with
80 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Originally there are some checker failures in weekly-CI | ||
# Skip them in test_model_zoo.py for now | ||
# TODO: fix these checker failures | ||
SKIP_CHECKER_MODELS = { | ||
"vision/classification/alexnet/model/bvlcalexnet-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/caffenet/model/caffenet-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/densenet-121/model/densenet-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/inception_and_googlenet/inception_v1/model/inception-v1-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/inception_and_googlenet/inception_v2/model/inception-v2-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/rcnn_ilsvrc13/model/rcnn-ilsvrc13-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/resnet/model/resnet50-caffe2-v1-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/shufflenet/model/shufflenet-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/squeezenet/model/squeezenet1.0-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/vgg/model/vgg19-caffe2-3.onnx", # opset1 typeinference function missing | ||
"vision/classification/zfnet-512/model/zfnet512-3.onnx", | ||
} # opset1 typeinference function missing | ||
|
||
# (1) TODO: Fix https://github.com/onnx/onnx/issues/4101 | ||
# to solve version conversion failure from Softmax-12 to Softmax-13 | ||
# version_converter/adapters/softmax_12_13.h:56: adapt_softmax_12_13: | ||
# Assertion `target_shape.size() != 0` failed: | ||
# Version conversion for Softmax failed because input shape is unknown. | ||
|
||
|
||
SKIP_VERSION_CONVERTER_MODELS = { | ||
"vision/classification/vgg/model/vgg19-bn-7.onnx", # version_converter/adapters/transformers.h:30: operator(): Assertion `node->i(attr) == value` failed: Attribute spatial must have value 1 | ||
"vision/classification/vgg/model/vgg16-bn-7.onnx", # version_converter/adapters/transformers.h:30: operator(): Assertion `node->i(attr) == value` failed: Attribute spatial must have value 1 | ||
"vision/object_detection_segmentation/ssd/model/ssd-12.onnx", # (1) Softmax 12 to 13 failure | ||
"vision/object_detection_segmentation/mask-rcnn/model/MaskRCNN-12.onnx", # (1) Softmax 12 to 13 failure | ||
"vision/object_detection_segmentation/mask-rcnn/model/MaskRCNN-12-int8.onnx", # unordered_map::at: key not found | ||
"text/machine_comprehension/t5/model/t5-encoder-12.onnx", # (1) Softmax 12 to 13 failure | ||
"text/machine_comprehension/t5/model/t5-decoder-with-lm-head-12.onnx", # (1) Softmax 12 to 13 failure | ||
"text/machine_comprehension/gpt2-bs/model/gpt2-lm-head-bs-12.onnx", # (1) Softmax 12 to 13 failure | ||
"text/machine_comprehension/bert-squad/model/bertsquad-12.onnx", # (1) Softmax 12 to 13 failure | ||
"vision/classification/inception_and_googlenet/inception_v2/model/inception-v2-6.onnx", # the converted opset 7 model cannot pass shape inference: | ||
# [ShapeInferenceError] (op_type:Mul, node name: ): [ShapeInferenceError] Inferred shape and existing shape differ in dimension 0: (64) vs (1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters