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
83d8bab5
Commit
83d8bab5
authored
Apr 23, 2020
by
Sai Ganesh Bandiatmakuri
Committed by
A. Unique TensorFlower
Apr 23, 2020
Browse files
Internal change
PiperOrigin-RevId: 308062306
parent
e3ae4b5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
official/benchmark/perfzero_benchmark.py
official/benchmark/perfzero_benchmark.py
+5
-0
No files found.
official/benchmark/perfzero_benchmark.py
View file @
83d8bab5
...
@@ -39,6 +39,7 @@ class PerfZeroBenchmark(tf.test.Benchmark):
...
@@ -39,6 +39,7 @@ class PerfZeroBenchmark(tf.test.Benchmark):
def
__init__
(
self
,
def
__init__
(
self
,
output_dir
=
None
,
output_dir
=
None
,
default_flags
=
None
,
default_flags
=
None
,
root_data_dir
=
None
,
flag_methods
=
None
,
flag_methods
=
None
,
tpu
=
None
):
tpu
=
None
):
"""Initialize class.
"""Initialize class.
...
@@ -46,6 +47,8 @@ class PerfZeroBenchmark(tf.test.Benchmark):
...
@@ -46,6 +47,8 @@ class PerfZeroBenchmark(tf.test.Benchmark):
Args:
Args:
output_dir: Base directory to store all output for the test.
output_dir: Base directory to store all output for the test.
default_flags: Set of flags to pass to model.
default_flags: Set of flags to pass to model.
root_data_dir: Optional param used by child classes to look for the
dataset.
flag_methods: Set of flag methods to run during setup.
flag_methods: Set of flag methods to run during setup.
tpu: (optional) TPU name to use in a TPU benchmark.
tpu: (optional) TPU name to use in a TPU benchmark.
"""
"""
...
@@ -70,6 +73,8 @@ class PerfZeroBenchmark(tf.test.Benchmark):
...
@@ -70,6 +73,8 @@ class PerfZeroBenchmark(tf.test.Benchmark):
# the TPU at runtime and passes the TPU's name to this flag.
# the TPU at runtime and passes the TPU's name to this flag.
self
.
default_flags
[
'tpu'
]
=
resolved_tpu
self
.
default_flags
[
'tpu'
]
=
resolved_tpu
logging
.
info
(
'root_data_dir: %s'
,
root_data_dir
)
def
_get_model_dir
(
self
,
folder_name
):
def
_get_model_dir
(
self
,
folder_name
):
"""Returns directory to store info, e.g. saved model and event log."""
"""Returns directory to store info, e.g. saved model and event log."""
return
os
.
path
.
join
(
self
.
output_dir
,
folder_name
)
return
os
.
path
.
join
(
self
.
output_dir
,
folder_name
)
...
...
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