Skip to content

Commit 6e630e9

Browse files
committed
Use new TPU segment option
1 parent ac1a881 commit 6e630e9

4 files changed

Lines changed: 231 additions & 107 deletions

File tree

src/modules/ObjectDetectionCoral/objectdetection_coral_multitpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ def main():
271271
if half_wall_start is not None:
272272
half_wall_time = time.perf_counter() - half_wall_start
273273

274-
print('completed one run every %.2fms for %d runs; %.2fms wall time for a single run' %
274+
logging.info('completed one run every %.2fms for %d runs; %.2fms wall time for a single run' %
275275
(wall_time * 1000 / args.count, args.count,
276276
(time.perf_counter() - start_one) * 1000))
277277

278-
print('%.2fms avg time blocked across %d threads; %.2fms ea for final %d inferences' %
278+
logging.info('%.2fms avg time blocked across %d threads; %.2fms ea for final %d inferences' %
279279
(tot_infr_time / args.count, thread_cnt,
280280
half_wall_time * 1000 / half_infr_count, half_infr_count))
281281

0 commit comments

Comments
 (0)