Skip to content

Commit

Permalink
towards fixing #318
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasquale Minervini committed Oct 29, 2017
1 parent 4dc7b5e commit 543ebff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jack/debug/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ def test_update(feed_dict, train_op):
res |= (b != a).any()

return res


def test_loss(feed_dict, loss_op):
session = tf.Session()
loss = session.run(loss_op, feed_dict=feed_dict)
return loss != 0

0 comments on commit 543ebff

Please sign in to comment.