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
ff22264d
Commit
ff22264d
authored
Aug 26, 2020
by
A. Unique TensorFlower
Browse files
Remove override for validation data drop_remainder (b/160647614 is fixed).
PiperOrigin-RevId: 328670231
parent
26d4f12c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
official/nlp/tasks/sentence_prediction.py
official/nlp/tasks/sentence_prediction.py
+0
-1
No files found.
official/nlp/tasks/sentence_prediction.py
View file @
ff22264d
...
@@ -175,7 +175,6 @@ class SentencePredictionTask(base_task.Task):
...
@@ -175,7 +175,6 @@ class SentencePredictionTask(base_task.Task):
return
None
return
None
if
state
is
None
:
if
state
is
None
:
state
=
{
'sentence_prediction'
:
[],
'labels'
:
[]}
state
=
{
'sentence_prediction'
:
[],
'labels'
:
[]}
# TODO(b/160712818): Add support for concatenating partial batches.
state
[
'sentence_prediction'
].
append
(
state
[
'sentence_prediction'
].
append
(
np
.
concatenate
([
v
.
numpy
()
for
v
in
step_outputs
[
'sentence_prediction'
]],
np
.
concatenate
([
v
.
numpy
()
for
v
in
step_outputs
[
'sentence_prediction'
]],
axis
=
0
))
axis
=
0
))
...
...
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