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
ff76fa6f
Commit
ff76fa6f
authored
Jan 13, 2017
by
Neal Wu
Committed by
GitHub
Jan 13, 2017
Browse files
Merge pull request #885 from Henry-E/master
ensure output directory exists
parents
99462f6d
6601008f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
neural_programmer/neural_programmer.py
neural_programmer/neural_programmer.py
+3
-0
No files found.
neural_programmer/neural_programmer.py
View file @
ff76fa6f
...
@@ -195,6 +195,9 @@ def master(train_data, dev_data, utility):
...
@@ -195,6 +195,9 @@ def master(train_data, dev_data, utility):
else
:
else
:
ckpt
=
tf
.
train
.
get_checkpoint_state
(
model_dir
)
ckpt
=
tf
.
train
.
get_checkpoint_state
(
model_dir
)
print
"model dir: "
,
model_dir
print
"model dir: "
,
model_dir
if
(
not
(
tf
.
gfile
.
IsDirectory
(
utility
.
FLAGS
.
output_dir
))):
print
"create dir: "
,
utility
.
FLAGS
.
output_dir
tf
.
gfile
.
MkDir
(
utility
.
FLAGS
.
output_dir
)
if
(
not
(
tf
.
gfile
.
IsDirectory
(
model_dir
))):
if
(
not
(
tf
.
gfile
.
IsDirectory
(
model_dir
))):
print
"create dir: "
,
model_dir
print
"create dir: "
,
model_dir
tf
.
gfile
.
MkDir
(
model_dir
)
tf
.
gfile
.
MkDir
(
model_dir
)
...
...
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