Skip to content

Commit 7508e20

Browse files
committed
skip if xnnpack is not used
1 parent 2535a25 commit 7508e20

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.ci/scripts/gather_test_models.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,12 @@ def export_models_for_ci() -> dict[str, dict]:
108108
continue
109109

110110
if backend == "xnnpack":
111-
if (
112-
name in MODEL_NAME_TO_OPTIONS
113-
and MODEL_NAME_TO_OPTIONS[name].quantization
114-
):
111+
if name not in MODEL_NAME_TO_OPTIONS:
112+
continue
113+
if MODEL_NAME_TO_OPTIONS[name].quantization:
115114
backend += "-quantization"
116115

117-
if name in MODEL_NAME_TO_OPTIONS and MODEL_NAME_TO_OPTIONS[name].delegation:
116+
if MODEL_NAME_TO_OPTIONS[name].delegation:
118117
backend += "-delegation"
119118

120119
record = {

0 commit comments

Comments
 (0)