diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-13 00:33:03 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-13 00:38:00 -0700 |
commit | 7f3938deb393f7688cd364b630afdd9338460299 (patch) | |
tree | d972bc7e82f5dea8f71354ae8a4bb8197b75c7af /tensorflow/python/client | |
parent | 626bc997c28e1dfeaa85041e6c5a057fec7e0a02 (diff) |
[TF] Update strings to run on device:CPU
/cpu is an old style and can be misleading for new people trying to specify other devices.
Also correct comparison in tensorflow/python/client/timeline_test.py
PiperOrigin-RevId: 212769480
Diffstat (limited to 'tensorflow/python/client')
-rw-r--r-- | tensorflow/python/client/timeline_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/client/timeline_test.py b/tensorflow/python/client/timeline_test.py index c046e9cfd4..03effde098 100644 --- a/tensorflow/python/client/timeline_test.py +++ b/tensorflow/python/client/timeline_test.py @@ -161,7 +161,7 @@ class TimelineTest(test.TestCase): cpu_max = maximums[ 'cuda_host_bfc'] if 'cuda_host_bfc' in maximums else maximums[cpuname] # At least num1 + num2, both float32s (4 bytes each) - self.assertGreater(cpu_max.num_bytes, 8) + self.assertGreaterEqual(cpu_max.num_bytes, 8) self.assertGreater(cpu_max.timestamp, 0) self.assertTrue('num1' in cpu_max.tensors or 'num1/read' in cpu_max.tensors) self.assertTrue('num2' in cpu_max.tensors or 'num2/read' in cpu_max.tensors) |