From 9249edb7758cc3e14aa3bfce0a0c98d49c0487b1 Mon Sep 17 00:00:00 2001 From: Olivia Nordquist Date: Thu, 17 May 2018 15:49:12 -0700 Subject: [PATCH] fixing some incorrect documentation in test cases. PiperOrigin-RevId: 197064874 --- tensorflow/contrib/eager/python/metrics_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tensorflow/contrib/eager/python/metrics_test.py b/tensorflow/contrib/eager/python/metrics_test.py index aad6723..98a98a8 100644 --- a/tensorflow/contrib/eager/python/metrics_test.py +++ b/tensorflow/contrib/eager/python/metrics_test.py @@ -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) -- 2.7.4