MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _validateTrace

Method _validateTrace

tensorflow/python/client/timeline_test.py:36–43  ·  view source on GitHub ↗
(self, chrome_trace_format)

Source from the content-addressed store, hash-verified

34class TimelineTest(test.TestCase):
35
36 def _validateTrace(self, chrome_trace_format):
37 # Check that the supplied string is valid JSON.
38 trace = json.loads(chrome_trace_format)
39 # It should have a top-level key containing events.
40 self.assertTrue('traceEvents' in trace)
41 # Every event in the list should have a 'ph' field.
42 for event in trace['traceEvents']:
43 self.assertTrue('ph' in event)
44
45 def testSimpleTimeline(self):
46 run_options = config_pb2.RunOptions(

Callers 5

testSimpleTimelineMethod · 0.95
testTimelineCpuMethod · 0.95
testTimelineGpuMethod · 0.95
testTimelineWithRPCsMethod · 0.95
testManyCPUsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected