We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907a017 commit fa7ff10Copy full SHA for fa7ff10
onnx_diagnostic/helpers/ort_session.py
@@ -108,7 +108,10 @@ def __init__(
108
session_options,
109
providers=providers,
110
)
111
- except onnxruntime.capi.onnxruntime_pybind11_state.Fail as e:
+ except (
112
+ onnxruntime.capi.onnxruntime_pybind11_state.Fail,
113
+ onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph,
114
+ ) as e:
115
if isinstance(sess, onnx.ModelProto):
116
debug_path = "_debug_InferenceSession_last_failure.onnx"
117
onnx.save(
0 commit comments