Skip to content

Commit 4f52b4f

Browse files
committed
validate
1 parent 581cbb5 commit 4f52b4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

onnx_diagnostic/torch_models/validate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,8 @@ def call_torch_export_custom(
18561856
"custom-nostrict-noinline",
18571857
"custom-nostrict-default-noinline",
18581858
"custom-nostrict-all-noinline",
1859+
"custom-dec",
1860+
"custom-decall",
18591861
}
18601862
assert exporter in available, f"Unexpected value for exporter={exporter!r} in {available}"
18611863
assert "model" in data, f"model is missing from data: {sorted(data)}"
@@ -1892,7 +1894,9 @@ def call_torch_export_custom(
18921894
export_options = ExportOptions(
18931895
strict=strict,
18941896
decomposition_table=(
1895-
"default" if "-default" in exporter else ("all" if "-all" in exporter else None)
1897+
"default"
1898+
if ("-default" in exporter or "-dec" in exporter)
1899+
else ("all" if ("-all" in exporter or "-decall" in exporter) else None)
18961900
),
18971901
save_ep=(os.path.join(dump_folder, f"{exporter}.ep") if dump_folder else None),
18981902
)

0 commit comments

Comments
 (0)