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
07747863
"docs/source/en/tasks/sequence_classification.md" did not exist on "4f4e5ddbcbdcd9d6353fc27d0137ac887a7f2f25"
Unverified
Commit
07747863
authored
Oct 26, 2020
by
Sylvain Gugger
Committed by
GitHub
Oct 26, 2020
Browse files
Fix label name in DataCollatorForNextSentencePrediction test (#8048)
parent
8bbe8247
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_data_collator.py
tests/test_data_collator.py
+1
-1
No files found.
tests/test_data_collator.py
View file @
07747863
...
@@ -175,7 +175,7 @@ class DataCollatorIntegrationTest(unittest.TestCase):
...
@@ -175,7 +175,7 @@ class DataCollatorIntegrationTest(unittest.TestCase):
total_samples
=
batch
[
"input_ids"
].
shape
[
0
]
total_samples
=
batch
[
"input_ids"
].
shape
[
0
]
self
.
assertEqual
(
batch
[
"input_ids"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"input_ids"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"token_type_ids"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"token_type_ids"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"
masked_lm_
labels"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"labels"
].
shape
,
torch
.
Size
((
total_samples
,
512
)))
self
.
assertEqual
(
batch
[
"next_sentence_label"
].
shape
,
torch
.
Size
((
total_samples
,)))
self
.
assertEqual
(
batch
[
"next_sentence_label"
].
shape
,
torch
.
Size
((
total_samples
,)))
@
slow
@
slow
...
...
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