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
05b9122f
Commit
05b9122f
authored
Apr 24, 2019
by
Shining Sun
Committed by
Toby Boyd
Apr 24, 2019
Browse files
Added none check for output_dir (#6664)
* Added none check for output_dir * Change double quote to single
parent
07678af8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/resnet/keras/keras_benchmark.py
official/resnet/keras/keras_benchmark.py
+3
-0
No files found.
official/resnet/keras/keras_benchmark.py
View file @
05b9122f
...
...
@@ -36,6 +36,9 @@ class KerasBenchmark(tf.test.Benchmark):
self
.
default_flags
=
default_flags
or
{}
self
.
flag_methods
=
flag_methods
or
{}
if
not
output_dir
:
output_dir
=
'/tmp/'
def
_get_model_dir
(
self
,
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