mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Raise output mismatch error in ort_test_dir_utils.py (#5364)
This commit is contained in:
parent
f5e4c0ea04
commit
5bd7241839
1 changed files with 4 additions and 2 deletions
|
|
@ -236,5 +236,7 @@ def run_test_dir(model_or_dir):
|
|||
if not np.equal(expected, actual).all():
|
||||
print('Mismatch for {}:\nExpected:{}\nGot:{}'.format(output_names[idx], expected, actual))
|
||||
failed = True
|
||||
|
||||
print('FAILED' if failed else 'PASS')
|
||||
if failed:
|
||||
raise ValueError('FAILED due to output mismatch.')
|
||||
else:
|
||||
print('PASS')
|
||||
|
|
|
|||
Loading…
Reference in a new issue