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
06834bc3
Unverified
Commit
06834bc3
authored
Jul 28, 2020
by
Lysandre Debut
Committed by
GitHub
Jul 28, 2020
Browse files
Logs should not be hidden behind a logger.info (#6097)
parent
dafa296c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
06834bc3
...
@@ -646,7 +646,7 @@ class Trainer:
...
@@ -646,7 +646,7 @@ class Trainer:
if
iterator
is
not
None
:
if
iterator
is
not
None
:
iterator
.
write
(
output
)
iterator
.
write
(
output
)
else
:
else
:
logger
.
info
(
output
)
print
(
output
)
def
_prepare_inputs
(
def
_prepare_inputs
(
self
,
inputs
:
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]],
model
:
nn
.
Module
self
,
inputs
:
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]],
model
:
nn
.
Module
...
...
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