Skip to content

Commit 543ebff

Browse files
author
Pasquale Minervini
committed
towards fixing #318
1 parent 4dc7b5e commit 543ebff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jack/debug/base.py

+6
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ def test_update(feed_dict, train_op):
2121
res |= (b != a).any()
2222

2323
return res
24+
25+
26+
def test_loss(feed_dict, loss_op):
27+
session = tf.Session()
28+
loss = session.run(loss_op, feed_dict=feed_dict)
29+
return loss != 0

0 commit comments

Comments
 (0)