Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
684a161e
Unverified
Commit
684a161e
authored
Apr 02, 2018
by
Karmel Allison
Committed by
GitHub
Apr 02, 2018
Browse files
After-the-fact response to @k-w-w 's review (#3841)
parent
59c7683e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
research/tensorrt/tensorrt.py
research/tensorrt/tensorrt.py
+0
-6
No files found.
research/tensorrt/tensorrt.py
View file @
684a161e
...
...
@@ -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
)
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment