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
e6aeb0d3
Commit
e6aeb0d3
authored
May 22, 2020
by
Lysandre
Browse files
Style
parent
95a26fcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/transformers/trainer.py
src/transformers/trainer.py
+1
-3
No files found.
src/transformers/trainer.py
View file @
e6aeb0d3
...
@@ -494,9 +494,7 @@ class Trainer:
...
@@ -494,9 +494,7 @@ class Trainer:
):
):
logs
:
Dict
[
str
,
float
]
=
{}
logs
:
Dict
[
str
,
float
]
=
{}
logs
[
"loss"
]
=
(
tr_loss
-
logging_loss
)
/
self
.
args
.
logging_steps
logs
[
"loss"
]
=
(
tr_loss
-
logging_loss
)
/
self
.
args
.
logging_steps
logs
[
"learning_rate"
]
=
(
logs
[
"learning_rate"
]
=
scheduler
.
get_last_lr
()[
0
]
scheduler
.
get_last_lr
()[
0
]
)
logging_loss
=
tr_loss
logging_loss
=
tr_loss
self
.
_log
(
logs
)
self
.
_log
(
logs
)
...
...
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