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
3fab0abd
Commit
3fab0abd
authored
Nov 14, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Nov 14, 2019
Browse files
Fix xlnet run_classifier.
PiperOrigin-RevId: 280516666
parent
3af667fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
official/nlp/xlnet/run_classifier.py
official/nlp/xlnet/run_classifier.py
+1
-3
No files found.
official/nlp/xlnet/run_classifier.py
View file @
3fab0abd
...
@@ -91,9 +91,7 @@ def run_evaluation(strategy,
...
@@ -91,9 +91,7 @@ def run_evaluation(strategy,
_test_step_fn
,
args
=
(
next
(
test_iterator
),))
_test_step_fn
,
args
=
(
next
(
test_iterator
),))
return
logits
,
labels
,
masks
return
logits
,
labels
,
masks
# pylint: disable=protected-access
test_iterator
=
data_utils
.
get_input_iterator
(
test_input_fn
,
strategy
)
test_iterator
=
data_utils
.
_get_input_iterator
(
test_input_fn
,
strategy
)
# pylint: enable=protected-access
correct
=
0
correct
=
0
total
=
0
total
=
0
for
_
in
range
(
eval_steps
):
for
_
in
range
(
eval_steps
):
...
...
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