Skip to content

Commit bfb2033

Browse files
authored
Fix the Broken CI (#1761)
Signed-off-by: Lei Mao <[email protected]> Fix the Broken CI Fix Bare Except Upgrade to TF 2.6.2
1 parent 03c643a commit bfb2033

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

ci_build/azure_pipelines/onnxruntime_nightly_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ stages:
8080
parameters:
8181
platforms: ['linux']
8282
python_versions: ['3.9']
83-
tf_versions: ['2.6.1']
83+
tf_versions: ['2.6.2']
8484
onnx_opsets: ['']
8585
onnx_backends: {onnxruntime: ['nightly']}
8686
job:

ci_build/azure_pipelines/pretrained_model_test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
parameters:
4242
platforms: ['linux', 'windows']
4343
python_versions: ['3.9']
44-
tf_versions: ['2.6.1']
44+
tf_versions: ['2.6.2']
4545
job:
4646
steps:
4747
- template: 'pretrained_model_test.yml'

ci_build/azure_pipelines/pretrained_model_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- template: 'templates/job_generator.yml'
1616
parameters:
1717
python_versions: ['3.7']
18-
tf_versions: ['1.15.5','2.6.1']
18+
tf_versions: ['1.15.5','2.6.2']
1919
job:
2020
steps:
2121
- template: 'pretrained_model_test.yml'

ci_build/azure_pipelines/unit_test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ stages:
5151
parameters:
5252
platforms: ['linux', 'windows']
5353
python_versions: ['3.8']
54-
tf_versions: ['2.6.1']
54+
tf_versions: ['2.6.2']
5555
onnx_opsets: ['']
5656
job:
5757
steps:

ci_build/azure_pipelines/unit_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stages:
77
parameters:
88
# TFJS tf 2.6
99
python_versions: ['3.9']
10-
tf_versions: ['2.6.1']
10+
tf_versions: ['2.6.2']
1111
onnx_opsets: ['']
1212
skip_tfjs_tests: 'False'
1313
skip_tf_tests: 'True'
@@ -20,7 +20,7 @@ stages:
2020
parameters:
2121
# TFLite tf 2.6
2222
python_versions: ['3.8']
23-
tf_versions: ['2.6.1']
23+
tf_versions: ['2.6.2']
2424
onnx_opsets: ['']
2525
skip_tflite_tests: 'False'
2626
skip_tf_tests: 'True'
@@ -33,7 +33,7 @@ stages:
3333
parameters:
3434
# tf 2.6
3535
python_versions: ['3.8']
36-
tf_versions: ['2.6.1']
36+
tf_versions: ['2.6.2']
3737
onnx_opsets: ['']
3838
job:
3939
steps:

tests/run_pretrained_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
try:
4040
import tensorflow_text # pylint: disable=unused-import
41-
except ModuleNotFoundError:
41+
except Exception as err:
4242
pass
4343

4444
from tf2onnx import tf_loader, logging, optimizer, utils, tf_utils, constants

tests/run_pretrained_models.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ keras_mobilenet_v2:
458458
ssd_mobilenet_v2_300_float_tflite:
459459
tf_min_version: 2.1
460460
disabled: false
461-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/ssd_mobilenet_v2_300_float.tflite
461+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/ssd_mobilenet_v2_300_float.tflite
462462
model: "ssd_mobilenet_v2_300_float.tflite"
463463
model_type: tflite
464464
input_get: get_car
@@ -476,7 +476,7 @@ ssd_mobilenet_v2_300_float_tflite:
476476
deeplabv3_mnv2_ade20k_float_tflite:
477477
tf_min_version: 2.1
478478
disabled: false
479-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/deeplabv3_mnv2_ade20k_float.tflite
479+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/deeplabv3_mnv2_ade20k_float.tflite
480480
model: "deeplabv3_mnv2_ade20k_float.tflite"
481481
model_type: tflite
482482
input_get: get_ade20k
@@ -489,7 +489,7 @@ deeplabv3_mnv2_ade20k_float_tflite:
489489
deeplabv3_mnv2_ade20k_uint8_tflite_dequantize:
490490
tf_min_version: 2.1
491491
disabled: false
492-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/deeplabv3_mnv2_ade20k_uint8.tflite
492+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/deeplabv3_mnv2_ade20k_uint8.tflite
493493
model: "deeplabv3_mnv2_ade20k_uint8.tflite"
494494
model_type: tflite
495495
input_get: get_ade20k_uint8
@@ -503,7 +503,7 @@ deeplabv3_mnv2_ade20k_uint8_tflite_dequantize:
503503
deeplabv3_mnv2_ade20k_uint8_tflite:
504504
tf_min_version: 2.1
505505
disabled: true # Requires ORT nightly for dequantize of int32
506-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/deeplabv3_mnv2_ade20k_uint8.tflite
506+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/deeplabv3_mnv2_ade20k_uint8.tflite
507507
model: "deeplabv3_mnv2_ade20k_uint8.tflite"
508508
model_type: tflite
509509
input_get: get_ade20k_uint8
@@ -520,7 +520,7 @@ deeplabv3_mnv2_ade20k_uint8_tflite:
520520
deeplabv3_mnv2_ade20k_int8_tflite_dequantize:
521521
tf_min_version: 2.1
522522
disabled: false
523-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/deeplabv3_mnv2_ade20k_int8.tflite
523+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/deeplabv3_mnv2_ade20k_int8.tflite
524524
model: "deeplabv3_mnv2_ade20k_int8.tflite"
525525
model_type: tflite
526526
input_get: get_ade20k_uint8 # the input is uint8 despite the model name
@@ -534,7 +534,7 @@ deeplabv3_mnv2_ade20k_int8_tflite_dequantize:
534534
deeplabv3_mnv2_ade20k_int8_tflite:
535535
tf_min_version: 2.1
536536
disabled: true # Requires ORT nightly for dequantize of int32
537-
url: https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/deeplabv3_mnv2_ade20k_int8.tflite
537+
url: https://github.com/mlcommons/mobile_models/raw/9c7b31ce63ff0331bd659ac2609c4e68b6b4ec0f/v0_7/tflite/deeplabv3_mnv2_ade20k_int8.tflite
538538
model: "deeplabv3_mnv2_ade20k_int8.tflite"
539539
model_type: tflite
540540
input_get: get_ade20k_uint8 # the input is uint8 despite the model name
@@ -571,7 +571,7 @@ mobilebert_tflite:
571571
palm_detection_tflite:
572572
tf_min_version: 2.1
573573
disabled: false
574-
url: https://github.com/google/mediapipe/raw/master/mediapipe/modules/palm_detection/palm_detection.tflite
574+
url: https://github.com/google/mediapipe/raw/v0.8.8/mediapipe/modules/palm_detection/palm_detection.tflite
575575
model: "palm_detection.tflite"
576576
model_type: tflite
577577
input_get: get_beach

0 commit comments

Comments
 (0)