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
9aebc711
"pytorch_transformers/model_utils.py" did not exist on "e75c3f70aa5122dbdd06cc693a58df837e422721"
Commit
9aebc711
authored
Feb 07, 2019
by
tholor
Browse files
adjust error message related to args.do_eval
parent
4a450b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/run_lm_finetuning.py
examples/run_lm_finetuning.py
+2
-2
No files found.
examples/run_lm_finetuning.py
View file @
9aebc711
...
...
@@ -501,8 +501,8 @@ def main():
if
n_gpu
>
0
:
torch
.
cuda
.
manual_seed_all
(
args
.
seed
)
if
not
args
.
do_train
and
not
args
.
do_eval
:
raise
ValueError
(
"
At least one of `do_train` or `do_eval` must be True
."
)
if
not
args
.
do_train
:
raise
ValueError
(
"
Training is currently the only implemented execution option. Please set `do_train`
."
)
if
os
.
path
.
exists
(
args
.
output_dir
)
and
os
.
listdir
(
args
.
output_dir
):
raise
ValueError
(
"Output directory ({}) already exists and is not empty."
.
format
(
args
.
output_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