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
dfbf0f55
Unverified
Commit
dfbf0f55
authored
Jan 12, 2021
by
Lysandre Debut
Committed by
GitHub
Jan 12, 2021
Browse files
topk -> top_k (#9541)
parent
a1100fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_pipelines_fill_mask.py
tests/test_pipelines_fill_mask.py
+1
-1
No files found.
tests/test_pipelines_fill_mask.py
View file @
dfbf0f55
...
@@ -183,7 +183,7 @@ class FillMaskPipelineTests(MonoInputPipelineCommonMixin, unittest.TestCase):
...
@@ -183,7 +183,7 @@ class FillMaskPipelineTests(MonoInputPipelineCommonMixin, unittest.TestCase):
]
]
valid_targets
=
[
" Patrick"
,
" Clara"
]
valid_targets
=
[
" Patrick"
,
" Clara"
]
for
model_name
in
self
.
large_models
:
for
model_name
in
self
.
large_models
:
nlp
=
pipeline
(
task
=
"fill-mask"
,
model
=
model_name
,
tokenizer
=
model_name
,
framework
=
"tf"
,
topk
=
2
)
nlp
=
pipeline
(
task
=
"fill-mask"
,
model
=
model_name
,
tokenizer
=
model_name
,
framework
=
"tf"
,
top
_
k
=
2
)
mono_result
=
nlp
(
valid_inputs
[
0
],
targets
=
valid_targets
)
mono_result
=
nlp
(
valid_inputs
[
0
],
targets
=
valid_targets
)
self
.
assertIsInstance
(
mono_result
,
list
)
self
.
assertIsInstance
(
mono_result
,
list
)
...
...
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