Skip to content

Commit a198252

Browse files
fix for runing RunONNXModel without verify (#2876)
Signed-off-by: Alexandre Eichenberger <[email protected]>
1 parent 94d9a8c commit a198252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/RunONNXModel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def check_non_negative(argname, value):
231231
"executables and libraries can be found, typically `onnx-mlir/build/Debug`"
232232
)
233233

234-
if args.verify.lower() == "onnxruntime":
234+
if args.verify and args.verify.lower() == "onnxruntime":
235235
if not args.model or (args.model and not args.model.endswith(".onnx")):
236236
raise RuntimeError(
237237
"Set input onnx model using argument --model when verifying using onnxruntime."

0 commit comments

Comments
 (0)