Skip to content

Commit

Permalink
add args check
Browse files Browse the repository at this point in the history
  • Loading branch information
inisis committed May 16, 2024
1 parent 73021c4 commit 8c35f63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onnxslim/cli/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ def main():
if not args.inspect and args.dump_to_disk:
parser.error("dump_to_disk can only be used with --inspect")

if args.save_as_external_data and args.output_model:
parser.error("--save_as_external_data can only be used for single model")

slim(
args.input_model,
args.output_model,
Expand Down

0 comments on commit 8c35f63

Please sign in to comment.