aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/profiler
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-18 11:42:09 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-18 11:46:06 -0800
commit09a6446b4e61f5fc8aa8fcf3f5824ef6660e7fc2 (patch)
tree0ebc1725bfc0debb74e179b9397da12d98b0b214 /tensorflow/python/profiler
parent9b9a1cd040fe4b8453927a2faaa1abbb4871f650 (diff)
Enable a no longer flaky test.
PiperOrigin-RevId: 182412902
Diffstat (limited to 'tensorflow/python/profiler')
-rw-r--r--tensorflow/python/profiler/internal/run_metadata_test.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/tensorflow/python/profiler/internal/run_metadata_test.py b/tensorflow/python/profiler/internal/run_metadata_test.py
index 4c915ac79a..fd893d6cde 100644
--- a/tensorflow/python/profiler/internal/run_metadata_test.py
+++ b/tensorflow/python/profiler/internal/run_metadata_test.py
@@ -205,17 +205,13 @@ class RunMetadataTest(test.TestCase):
for _, f in six.iteritems(back_to_forward):
self.assertTrue(f in forward_op)
- # pylint: disable=pointless-string-statement
- """
- # TODO(xpan): This test is flaky because RunMetadata returned from TensorFlow
- # is random. Still being investigated.
def testLoopGPU(self):
if not test.is_gpu_available():
return
ops.reset_default_graph()
with ops.device('/device:GPU:0'):
- tfprof_node, run_meta = _run_loop_model()
+ _, run_meta = _run_loop_model()
# The while-loop caused a node to appear 4 times in scheduling.
ret = _extract_node(run_meta,
'rnn/while/basic_rnn_cell/MatMul')
@@ -227,11 +223,6 @@ class RunMetadataTest(test.TestCase):
self.assertGreaterEqual(len(ret['gpu:0/stream:all']), 4, '%s' % run_meta)
- total_accelerator_execs = 0
- for node in ret['gpu:0/stream:all']:
- total_accelerator_execs += node.op_end_rel_micros
- """
-
if __name__ == '__main__':
test.main()