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
ModelZoo
ResNet50_tensorflow
Commits
87bc2cdc
Commit
87bc2cdc
authored
Dec 28, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 349317246
parent
16c3feab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
official/nlp/data/squad_lib.py
official/nlp/data/squad_lib.py
+3
-0
official/nlp/data/squad_lib_sp.py
official/nlp/data/squad_lib_sp.py
+3
-0
No files found.
official/nlp/data/squad_lib.py
View file @
87bc2cdc
...
...
@@ -619,6 +619,9 @@ def postprocess_output(all_examples,
null_start_logit
=
0
# the start logit at the slice with min null score
null_end_logit
=
0
# the end logit at the slice with min null score
for
(
feature_index
,
feature
)
in
enumerate
(
features
):
if
feature
.
unique_id
not
in
unique_id_to_result
:
logging
.
info
(
"Skip eval example %s, not in pred."
,
feature
.
unique_id
)
continue
result
=
unique_id_to_result
[
feature
.
unique_id
]
# if we could have irrelevant answers, get the min score of irrelevant
...
...
official/nlp/data/squad_lib_sp.py
View file @
87bc2cdc
...
...
@@ -686,6 +686,9 @@ def postprocess_output(all_examples,
null_start_logit
=
0
# the start logit at the slice with min null score
null_end_logit
=
0
# the end logit at the slice with min null score
for
(
feature_index
,
feature
)
in
enumerate
(
features
):
if
feature
.
unique_id
not
in
unique_id_to_result
:
logging
.
info
(
"Skip eval example %s, not in pred."
,
feature
.
unique_id
)
continue
result
=
unique_id_to_result
[
feature
.
unique_id
]
# if we could have irrelevant answers, get the min score of irrelevant
...
...
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