Support constructing TensorFlowVariables from multiple tf operations (#2182)

This commit is contained in:
Binglin Chang
2018-06-02 18:13:52 -07:00
committed by Robert Nishihara
parent d699bfbf10
commit 19d6ca0670
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ class TensorFlowTest(unittest.TestCase):
variables2.set_flat(flat_weights)
assert_almost_equal(flat_weights, variables2.get_flat())
variables3 = ray.experimental.TensorFlowVariables(loss2)
variables3 = ray.experimental.TensorFlowVariables([loss2])
self.assertEqual(variables3.sess, None)
sess = tf.Session()
variables3.set_session(sess)