Skip to content

Commit

Permalink
Add exception if misesd argument value
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-nv committed Jan 7, 2025
1 parent 5de9816 commit a254b9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qa/common/gen_qa_ort_scalar_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def create_onnx_modelconfig(models_dir, dtype, shape):
)

FLAGS = parser.parse_args()

if not FLAGS.models_dir:
raise Exception("--models_dir is required")

create_onnx_modelfile(FLAGS.models_dir, shape=[1], dtype=np.float32)
create_onnx_modelconfig(FLAGS.models_dir, shape=[1], dtype=np.float32)
create_onnx_modelfile(FLAGS.models_dir, shape=[1, 1], dtype=np.float32)
Expand Down

0 comments on commit a254b9c

Please sign in to comment.