Fix tolerance too tight for Wasserstein distance test.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 2 Feb 2018 05:43:12 +0000 (21:43 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 2 Feb 2018 18:29:34 +0000 (10:29 -0800)
PiperOrigin-RevId: 184240222

tensorflow/contrib/gan/python/eval/python/sliced_wasserstein_test.py

index b960af28eaa969079b72c7aabcde2ad6cd1f5c68..871f1ad54e2559f5df28efa78f99997a866f7087 100644 (file)
@@ -84,11 +84,11 @@ class ClassifierMetricsTest(test.TestCase):
     self.assertAllClose(
         np.array([0.014, 0.014], 'f'),
         np.array([x[0] for x in wscores], 'f'),
-        rtol=0.1)
+        rtol=0.15)
     self.assertAllClose(
         np.array([0.014, 0.020], 'f'),
         np.array([x[1] for x in wscores], 'f'),
-        rtol=0.1)
+        rtol=0.15)
 
   def test_sliced_wasserstein_distance_svd(self):
     """Test the distance."""