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
dd0ff4df
Commit
dd0ff4df
authored
Feb 26, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 297381042
parent
f2cf0cf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
official/benchmark/tfhub_memory_usage_benchmark.py
official/benchmark/tfhub_memory_usage_benchmark.py
+0
-4
No files found.
official/benchmark/tfhub_memory_usage_benchmark.py
View file @
dd0ff4df
...
@@ -30,10 +30,6 @@ FLAGS = flags.FLAGS
...
@@ -30,10 +30,6 @@ FLAGS = flags.FLAGS
class
TfHubMemoryUsageBenchmark
(
PerfZeroBenchmark
):
class
TfHubMemoryUsageBenchmark
(
PerfZeroBenchmark
):
"""A benchmark measuring memory usage for a given TF Hub SavedModel."""
"""A benchmark measuring memory usage for a given TF Hub SavedModel."""
def
__init__
(
self
,
output_dir
=
None
,
default_flags
=
None
,
root_data_dir
=
None
):
super
(
TfHubMemoryUsageBenchmark
,
self
).
__init__
(
output_dir
=
output_dir
,
default_flags
=
default_flags
)
def
benchmark_memory_usage
(
self
):
def
benchmark_memory_usage
(
self
):
start_time_sec
=
time
.
time
()
start_time_sec
=
time
.
time
()
self
.
load_model
()
self
.
load_model
()
...
...
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