fixing some incorrect documentation in test cases.
authorOlivia Nordquist <nolivia@google.com>
Thu, 17 May 2018 22:49:12 +0000 (15:49 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 17 May 2018 22:54:47 +0000 (15:54 -0700)
PiperOrigin-RevId: 197064874

tensorflow/contrib/eager/python/metrics_test.py

index aad6723..98a98a8 100644 (file)
@@ -146,8 +146,6 @@ class MetricsTest(test.TestCase):
     self.assertAllEqual(2.0, m2.result())
 
   def testNamesWithSpaces(self):
-    # Verify two metrics with the same class and name don't
-    # accidentally share state.
     m1 = metrics.Mean("has space")
     m1(0)
     self.assertEqual(m1.name, "has space")
@@ -186,8 +184,8 @@ class MetricsTest(test.TestCase):
     self.assertEqual(self.evaluate(value), 2.5)
 
   def testTwoMeansGraph(self):
-    # Verify two metrics with the same class and name don't
-    # accidentally share state.
+    # Verify two metrics with the same name in the same graph raises a
+    # ValueError.
     with context.graph_mode():
       m1 = metrics.Mean()
       m1(0)