Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Update validate_difference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 12, 2019
1 parent ec7e994 commit 2f392bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mlprodict/onnxrt/validate_difference.py
Expand Up @@ -71,8 +71,9 @@ def measure_relative_difference(skl_pred, ort_pred, batch=True):
try:
ort_pred = numpy.array(ort_pred)
except ValueError as e:
raise ValueError("Unable to interpret (type(skl_pred): {})\n{}\n-----\n{}".format(
type(skl_pred), skl_pred, ort_pred)) from e
raise ValueError(
"Unable to interpret (batch={}, type(skl_pred): {})\n{}\n-----\n{}".format(
batch, type(skl_pred), skl_pred, ort_pred)) from e

if hasattr(skl_pred, 'todense'):
skl_pred = skl_pred.todense()
Expand Down

0 comments on commit 2f392bb

Please sign in to comment.