mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Support constructing TensorFlowVariables from multiple tf operations (#2182)
This commit is contained in:
committed by
Robert Nishihara
parent
d699bfbf10
commit
19d6ca0670
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user