Skip to content

Commit

Permalink
Merge pull request #336 from triple-Mu/triplemu/fix-ir-version-bug
Browse files Browse the repository at this point in the history
fallback C.simplify ir_version error to C.simplify_path
  • Loading branch information
daquexian authored Jul 8, 2024
2 parents fbf1ca8 + 49d297c commit 1379b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxsim/onnx_simplifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def parse_size(size: str) -> int:
check_ok = model_checking.compare(
model_opt, model, check_n, test_input_shapes, input_data, custom_lib
)
except ValueError:
except (ValueError, onnx.onnx_cpp2py_export.checker.ValidationError):
print("[bold magenta]Simplified model larger than 2GB. Trying to save as external data...[/bold magenta]")
# large models try to convert through a temporary file
with tempfile.TemporaryDirectory() as tmpdirname:
Expand Down

0 comments on commit 1379b14

Please sign in to comment.