aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/profiler/profile_context_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/profiler/profile_context_test.py')
-rw-r--r--tensorflow/python/profiler/profile_context_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/profiler/profile_context_test.py b/tensorflow/python/profiler/profile_context_test.py
index a623beee23..107ad443c3 100644
--- a/tensorflow/python/profiler/profile_context_test.py
+++ b/tensorflow/python/profiler/profile_context_test.py
@@ -61,6 +61,8 @@ class ProfilerContextTest(test.TestCase):
profile_str = f.read()
gfile.Remove(outfile)
+ self.assertEqual(set([15, 50, 100]), set(pctx.get_profiles("op").keys()))
+
with lib.ProfilerFromFile(
os.path.join(test.get_temp_dir(), "profile_100")) as profiler:
profiler.profile_operations(options=opts)