diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-06-23 09:16:34 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-06-23 10:31:38 -0700 |
commit | 7683b6820df9179ef987c062f646f267ff5f523c (patch) | |
tree | c22fff321927af4bbd3c21132c21fbe9daff7523 /tensorflow/contrib/testing | |
parent | 94ce162cc335cccc41ab458671d0d73d53af0c07 (diff) |
Do not assert session logs for training with supervisor, thread timing is
non-deterministic.
Change: 125689946
Diffstat (limited to 'tensorflow/contrib/testing')
-rw-r--r-- | tensorflow/contrib/testing/python/framework/fake_summary_writer.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/contrib/testing/python/framework/fake_summary_writer.py b/tensorflow/contrib/testing/python/framework/fake_summary_writer.py index 8cc2c4c464..d742608cf1 100644 --- a/tensorflow/contrib/testing/python/framework/fake_summary_writer.py +++ b/tensorflow/contrib/testing/python/framework/fake_summary_writer.py @@ -71,9 +71,10 @@ class FakeSummaryWriter(object): if 'global_step/sec' != v.tag: actual_simple_values[v.tag] = v.simple_value test_case.assertEqual(expected_summaries[step], actual_simple_values) - test_case.assertEqual(expected_added_graphs or [], self._added_graphs) - test_case.assertEqual( - expected_session_logs or [], self._added_session_logs) + if expected_added_graphs is not None: + test_case.assertEqual(expected_added_graphs, self._added_graphs) + if expected_session_logs is not None: + test_case.assertEqual(expected_session_logs, self._added_session_logs) def add_summary(self, summary, current_global_step): """Add summary.""" |