Commit ff22264d authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Remove override for validation data drop_remainder (b/160647614 is fixed).

PiperOrigin-RevId: 328670231
parent 26d4f12c
...@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment