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
443b0cad
Unverified
Commit
443b0cad
authored
Jul 13, 2020
by
Stas Bekman
Committed by
GitHub
Jul 13, 2020
Browse files
rename the function to match the rest of the test convention (#5692)
parent
74843695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_modeling_xlm.py
tests/test_modeling_xlm.py
+3
-3
No files found.
tests/test_modeling_xlm.py
View file @
443b0cad
...
...
@@ -297,7 +297,7 @@ class XLMModelTester:
self
.
parent
.
assertListEqual
(
list
(
result
[
"loss"
].
size
()),
[])
self
.
parent
.
assertListEqual
(
list
(
result
[
"logits"
].
size
()),
[
self
.
batch_size
,
self
.
type_sequence_label_size
])
def
create_and_check_xlm_
for_
token_classif
ication
(
def
create_and_check_xlm_token_classif
(
self
,
config
,
input_ids
,
...
...
@@ -383,9 +383,9 @@ class XLMModelTest(ModelTesterMixin, unittest.TestCase):
config_and_inputs
=
self
.
model_tester
.
prepare_config_and_inputs
()
self
.
model_tester
.
create_and_check_xlm_sequence_classif
(
*
config_and_inputs
)
def
test_xlm_
for_
token_classif
ication
(
self
):
def
test_xlm_token_classif
(
self
):
config_and_inputs
=
self
.
model_tester
.
prepare_config_and_inputs
()
self
.
model_tester
.
create_and_check_xlm_
for_
token_classif
ication
(
*
config_and_inputs
)
self
.
model_tester
.
create_and_check_xlm_token_classif
(
*
config_and_inputs
)
@
slow
def
test_model_from_pretrained
(
self
):
...
...
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