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
fe0f552e
Commit
fe0f552e
authored
Dec 09, 2019
by
Morgan Funtowicz
Browse files
Use attention_mask everywhere.
parent
348e19aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
transformers/pipelines.py
transformers/pipelines.py
+0
-3
No files found.
transformers/pipelines.py
View file @
fe0f552e
...
...
@@ -154,9 +154,6 @@ class QuestionAnsweringPipeline(Pipeline):
return_attention_masks
=
True
,
return_input_lengths
=
False
)
# TODO : Harmonize model arguments across all model
inputs
[
'attention_mask'
]
=
inputs
.
pop
(
'encoder_attention_mask'
)
if
is_tf_available
():
# TODO trace model
start
,
end
=
self
.
model
(
inputs
)
...
...
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