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

Function process_benchmarks

tensorflow/tools/test/run_and_gather_logs_lib.py:89–95  ·  view source on GitHub ↗
(log_files)

Source from the content-addressed store, hash-verified

87
88
89def process_benchmarks(log_files):
90 benchmarks = test_log_pb2.BenchmarkEntries()
91 for f in log_files:
92 content = gfile.GFile(f, "rb").read()
93 if benchmarks.MergeFromString(content) != len(content):
94 raise Exception("Failed parsing benchmark entry from %s" % f)
95 return benchmarks
96
97
98def run_and_gather_logs(name, test_name, test_args,

Callers 1

process_test_logsFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected