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
eecaaa73
Unverified
Commit
eecaaa73
authored
Mar 14, 2019
by
Thomas Wolf
Committed by
GitHub
Mar 14, 2019
Browse files
Merge pull request #371 from yongbowin/patch-1
Simplify code, delete redundancy line
parents
9b03d67b
22a465a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
examples/run_classifier.py
examples/run_classifier.py
+0
-1
No files found.
examples/run_classifier.py
View file @
eecaaa73
...
...
@@ -594,7 +594,6 @@ def main():
optimizer
.
zero_grad
()
global_step
+=
1
if
args
.
do_train
:
# Save a trained model and the associated configuration
model_to_save
=
model
.
module
if
hasattr
(
model
,
'module'
)
else
model
# Only save the model it-self
output_model_file
=
os
.
path
.
join
(
args
.
output_dir
,
WEIGHTS_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