diff options
author | Alexandre Passos <apassos@google.com> | 2018-06-25 12:39:33 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-25 12:43:56 -0700 |
commit | aedd096b83886e0ea99611cc5488284a98fb9b01 (patch) | |
tree | ffff736b60b3b6edc7965d15422a7a15021b1618 /tensorflow/contrib/timeseries | |
parent | adc03426f11e7d22dca8ee59146423eb4d9668eb (diff) |
Uses resource variables by default for the global step.
Relnotes: hooks will now see deterministically the value of the global
step before updating instead of the value after updating.
PiperOrigin-RevId: 202000826
Diffstat (limited to 'tensorflow/contrib/timeseries')
-rw-r--r-- | tensorflow/contrib/timeseries/python/timeseries/head_test.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tensorflow/contrib/timeseries/python/timeseries/head_test.py b/tensorflow/contrib/timeseries/python/timeseries/head_test.py index ed8f29c321..0d9e593563 100644 --- a/tensorflow/contrib/timeseries/python/timeseries/head_test.py +++ b/tensorflow/contrib/timeseries/python/timeseries/head_test.py @@ -166,10 +166,6 @@ class EvaluationMetricsTests(test.TestCase): evaluation = estimator.evaluate(input_fn, steps=1) self.assertIn("plain_boring_metric386", evaluation) self.assertIn("fun_metric101", evaluation) - # The values are deterministic because of fixed tf_random_seed. - # However if they become flaky, remove such exacts comparisons. - self.assertAllClose(evaluation["plain_boring_metric386"], 1.130380) - self.assertAllClose(evaluation["fun_metric101"], 10.435442) class _StubModel(object): |