File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
onnx_diagnostic/torch_models Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments