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
b5995bad
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4b796978656e461177a83d58ec3c2b06152c63db"
Unverified
Commit
b5995bad
authored
Aug 02, 2021
by
Tadej Svetina
Committed by
GitHub
Aug 02, 2021
Browse files
Fix typo in example of DPRReader (#12954)
parent
a4340d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/dpr/modeling_dpr.py
src/transformers/models/dpr/modeling_dpr.py
+1
-1
No files found.
src/transformers/models/dpr/modeling_dpr.py
View file @
b5995bad
...
@@ -627,7 +627,7 @@ class DPRReader(DPRPretrainedReader):
...
@@ -627,7 +627,7 @@ class DPRReader(DPRPretrainedReader):
... return_tensors='pt'
... return_tensors='pt'
... )
... )
>>> outputs = model(**encoded_inputs)
>>> outputs = model(**encoded_inputs)
>>> start_logits = outputs.stat_logits
>>> start_logits = outputs.sta
r
t_logits
>>> end_logits = outputs.end_logits
>>> end_logits = outputs.end_logits
>>> relevance_logits = outputs.relevance_logits
>>> relevance_logits = outputs.relevance_logits
...
...
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