Skip to content

Commit b528ef4

Browse files
committed
extends api
1 parent c5740bd commit b528ef4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

onnx_diagnostic/export/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def to_onnx(
9191
**(exporter_kwargs or {}),
9292
dispatcher=dispatcher if use_control_flow_dispatcher else None,
9393
)
94+
9495
if exporter in ("dynamo", "onnx-dynamo"):
96+
import os
9597
import onnxscript.rewriter.ort_fusions as ort_fusions
9698

9799
assert (
@@ -106,6 +108,9 @@ def to_onnx(
106108
opset_version=target_opset,
107109
dynamic_shapes=dynamic_shapes,
108110
dynamo=True,
111+
verbose=verbose,
112+
dump_exported_program=bool(save_ep),
113+
artifacts_dir=os.path.dirname(filename) if filename else ".",
109114
**(exporter_kwargs or {}),
110115
)
111116
if optimize:

0 commit comments

Comments
 (0)