diff options
author | 2018-06-13 15:49:22 -0700 | |
---|---|---|
committer | 2018-06-13 15:59:03 -0700 | |
commit | 4d48d1dc5a1a6010132988e4afe1e70e1f01be03 (patch) | |
tree | b229b029534be77128be4f407c7c5ad0ed552086 /tensorflow/contrib/slim | |
parent | 31ea26d15004a3b5ac5b87e598cd6dfdc71f6012 (diff) |
Uses a resource variable by default for the global step.
PiperOrigin-RevId: 200467580
Diffstat (limited to 'tensorflow/contrib/slim')
-rw-r--r-- | tensorflow/contrib/slim/python/slim/learning_test.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/contrib/slim/python/slim/learning_test.py b/tensorflow/contrib/slim/python/slim/learning_test.py index 831c6e427a..6bd55e7a24 100644 --- a/tensorflow/contrib/slim/python/slim/learning_test.py +++ b/tensorflow/contrib/slim/python/slim/learning_test.py @@ -520,8 +520,6 @@ class TrainTest(test.TestCase): run_root = glob.glob(os.path.join(dump_root, 'run_*'))[-1] dump = debug_data.DebugDumpDir(run_root) - self.assertAllEqual(0, - dump.get_tensors('global_step', 0, 'DebugIdentity')[0]) def testTrainWithTrace(self): logdir = os.path.join( @@ -547,7 +545,7 @@ class TrainTest(test.TestCase): log_every_n_steps=10, trace_every_n_steps=100) self.assertIsNotNone(loss) - for trace_step in [1, 101, 201]: + for trace_step in [0, 100, 200]: trace_filename = 'tf_trace-%d.json' % trace_step self.assertTrue(os.path.isfile(os.path.join(logdir, trace_filename))) |