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
chenpangpang
transformers
Commits
1b101599
Unverified
Commit
1b101599
authored
Apr 02, 2020
by
Mark Kockerbeck
Committed by
GitHub
Apr 02, 2020
Browse files
Adding should_continue check for retraining (#3509)
parent
390c1285
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/run_language_modeling.py
examples/run_language_modeling.py
+1
-0
No files found.
examples/run_language_modeling.py
View file @
1b101599
...
@@ -624,6 +624,7 @@ def main():
...
@@ -624,6 +624,7 @@ def main():
and
os
.
listdir
(
args
.
output_dir
)
and
os
.
listdir
(
args
.
output_dir
)
and
args
.
do_train
and
args
.
do_train
and
not
args
.
overwrite_output_dir
and
not
args
.
overwrite_output_dir
and
not
args
.
should_continue
):
):
raise
ValueError
(
raise
ValueError
(
"Output directory ({}) already exists and is not empty. Use --overwrite_output_dir to overcome."
.
format
(
"Output directory ({}) already exists and is not empty. Use --overwrite_output_dir to overcome."
.
format
(
...
...
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