Closed sindhu-nervana closed 5 years ago
As part of this PR, can you please change the "except:" handler in this code:
try: model_name, p = run_inference(args.model_name, models_dir) check_accuracy(model_name, p) except: print("Model accuracy verification failed.")
To be something like:
try: model_name, p = run_inference(args.model_name, models_dir) check_accuracy(model_name, p) except Exception as ex: print("Model accuracy verification failed. Exception: %s" % str(ex))
With the current code, there is no information on what raised the exception. My proposed modifications will print that exception information out.
As part of this PR, can you please change the "except:" handler in this code:
To be something like:
With the current code, there is no information on what raised the exception. My proposed modifications will print that exception information out.