Replace == with is in test comparing variable identity.

PiperOrigin-RevId: 263627688
This commit is contained in:
Martin Wicke 2019-08-15 13:18:26 -07:00 committed by TensorFlower Gardener
parent 9c6cf98672
commit 5f1f68499c

View File

@ -235,8 +235,8 @@ class WrapFunctionTest(test.TestCase):
self.assertIs(g_var_collection[0], v3_holder[0])
# Both have only one value, and their values aren't equal. So no sharing.
self.assertNotEqual(g_wrapped.graph.get_collection(ops.GraphKeys.LOSSES),
f_wrapped.graph.get_collection(ops.GraphKeys.LOSSES))
self.assertIsNot(g_wrapped.graph.get_collection(ops.GraphKeys.LOSSES[0]),
f_wrapped.graph.get_collection(ops.GraphKeys.LOSSES)[0])
def testGradientsOfPrune(self):