Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions research/tensorrt/tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ def log_stats(graph_name, log_buffer, timings, batch_size):
timings: list of floats, times produced for multiple runs that will be
used for statistic calculation
batch_size: int, number of examples per batch

Returns:
list of two floats representing frames per second and 99th percentile
time per batch
"""
times = np.array(timings)
steps = len(times)
Expand All @@ -357,8 +353,6 @@ def log_stats(graph_name, log_buffer, timings, batch_size):

log_buffer.write(msg)

return [speed_mean, time_99th]


def time_and_log_graph(graph_name, graph_def, data, log_buffer, flags):
timings, result = time_graph(
Expand Down