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
a208dd14
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "ad4ffdf754e4e9bc73d3a92c2192a02704d9cbf3"
Commit
a208dd14
authored
Feb 26, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 297445627
parent
83f56818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
official/benchmark/tfhub_memory_usage_benchmark.py
official/benchmark/tfhub_memory_usage_benchmark.py
+8
-0
No files found.
official/benchmark/tfhub_memory_usage_benchmark.py
View file @
a208dd14
...
...
@@ -30,6 +30,14 @@ FLAGS = flags.FLAGS
class
TfHubMemoryUsageBenchmark
(
PerfZeroBenchmark
):
"""A benchmark measuring memory usage for a given TF Hub SavedModel."""
def
__init__
(
self
,
output_dir
=
None
,
default_flags
=
None
,
root_data_dir
=
None
,
**
kwargs
):
super
(
TfHubMemoryUsageBenchmark
,
self
).
__init__
(
output_dir
=
output_dir
,
default_flags
=
default_flags
,
**
kwargs
)
def
benchmark_memory_usage
(
self
):
start_time_sec
=
time
.
time
()
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