From 8c35f6357a50dac136cec59871447ef3d56fbd7e Mon Sep 17 00:00:00 2001 From: inisis Date: Thu, 16 May 2024 02:18:09 +0000 Subject: [PATCH] add args check --- onnxslim/cli/_main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onnxslim/cli/_main.py b/onnxslim/cli/_main.py index 069a56f..9296356 100644 --- a/onnxslim/cli/_main.py +++ b/onnxslim/cli/_main.py @@ -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,