Skip to content

Commit

Permalink
Add difference to verification failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmuss authored and hunse committed May 14, 2020
1 parent a6eadb2 commit 4536691
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nengo_dl/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def verify(self, training=False, inputs=None, atol=1e-8, rtol=1e-5):
logger.info("Nengo:\n%s", nengo_vals[fails])
raise ValueError(
"Output of Keras model does not match output of converted "
"Nengo network"
"Nengo network (max difference=%.2E; set log level to INFO to see "
"all failures)" % max(abs(keras_vals[fails] - nengo_vals[fails]))
)

return True
Expand Down

0 comments on commit 4536691

Please sign in to comment.