We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89c26d2 commit 4dc7b5eCopy full SHA for 4dc7b5e
jack/debug/__init__.py
@@ -0,0 +1 @@
1
+# -*- coding: utf-8 -*-
jack/debug/base.py
@@ -0,0 +1,23 @@
2
+
3
+import tensorflow as tf
4
5
+import logging
6
7
+logger = logging.getLogger(__name__)
8
9
10
+def test_update(feed_dict, train_op):
11
+ session = tf.Session()
12
+ session.run(tf.global_variables_initializer())
13
14
+ before = session.run(tf.trainable_variables())
15
+ session.run(train_op, feed_dict=feed_dict)
16
+ after = session.run(tf.trainable_variables())
17
18
+ res = False
19
+ for b, a in zip(before, after):
20
+ # Check if anything changed
21
+ res |= (b != a).any()
22
23
+ return res
0 commit comments