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
0a850d21
Commit
0a850d21
authored
Aug 24, 2020
by
sgugger
Browse files
Missing commit
parent
b30879fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/transformers/trainer.py
src/transformers/trainer.py
+1
-4
No files found.
src/transformers/trainer.py
View file @
0a850d21
...
...
@@ -257,10 +257,7 @@ class Trainer:
logger
.
info
(
f
"The following columns
{
dset_description
}
don't have a corresponding argument in `
{
self
.
model
.
__class__
.
__name__
}
.forward` and have been ignored:
{
', '
.
join
(
ignored_columns
)
}
."
)
ds_type
=
dataset
.
format
[
"type"
]
if
ds_type
==
"python"
:
ds_type
=
None
dataset
.
set_format
(
type
=
ds_type
,
columns
=
columns
)
dataset
.
set_format
(
type
=
dataset
.
format
[
"type"
],
columns
=
columns
)
def
_get_train_sampler
(
self
)
->
Optional
[
torch
.
utils
.
data
.
sampler
.
Sampler
]:
if
isinstance
(
self
.
train_dataset
,
torch
.
utils
.
data
.
IterableDataset
):
...
...
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