Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b3e54698
Commit
b3e54698
authored
Aug 20, 2020
by
sgugger
Browse files
Fix CI
parent
33bf4264
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 @
b3e54698
...
@@ -704,9 +704,7 @@ class Trainer:
...
@@ -704,9 +704,7 @@ class Trainer:
else
:
else
:
print
(
output
)
print
(
output
)
def
_prepare_inputs
(
def
_prepare_inputs
(
self
,
inputs
:
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]])
->
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]]:
self
,
inputs
:
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]]
)
->
Dict
[
str
,
Union
[
torch
.
Tensor
,
Any
]]:
"""
"""
Prepare :obj:`inputs` before feeding them to the model, converting them to tensors if they are not already and
Prepare :obj:`inputs` before feeding them to the model, converting them to tensors if they are not already and
handling potential state.
handling potential state.
...
...
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