[TF:XLA] Slightly increase error tolerance of Adagrad test.

PiperOrigin-RevId: 266910629
This commit is contained in:
A. Unique TensorFlower 2019-09-03 05:56:27 -07:00 committed by TensorFlower Gardener
parent dc48199572
commit a66d77fad7
2 changed files with 2 additions and 3 deletions

View File

@ -5724,7 +5724,6 @@ cuda_py_tests(
"@six_archive//:six",
"//tensorflow/core:protos_all_py",
],
xla_enable_strict_auto_jit = True,
)
py_library(

View File

@ -363,8 +363,8 @@ class FtrlOptimizerTest(test.TestCase):
val2, val3 = self.applyOptimizer(
adagrad.AdagradOptimizer(3.0, initial_accumulator_value=0.1), dtype)
self.assertAllCloseAccordingToType(val0, val2)
self.assertAllCloseAccordingToType(val1, val3)
self.assertAllCloseAccordingToType(val0, val2, half_rtol=2e-3)
self.assertAllCloseAccordingToType(val1, val3, half_rtol=2e-3)
@test_util.run_deprecated_v1
def testEquivSparseAdagradwithoutRegularization(self):