(self, x, feed_dict=None)
| 14 | class TestModel(unittest.TestCase): |
| 15 | |
| 16 | def eval(self, x, feed_dict=None): |
| 17 | sess = tf.Session() |
| 18 | sess.run(tf.global_variables_initializer()) |
| 19 | if isinstance(x, list): |
| 20 | return sess.run(x, feed_dict=feed_dict) |
| 21 | else: |
| 22 | return sess.run([x], feed_dict=feed_dict)[0] |
| 23 | |
| 24 | def make_variable(self, *args): |
| 25 | if len(args) > 1: |
no test coverage detected