Skip to content

Commit 20b86d3

Browse files
committed
fixed omission of end_indices in decode_batch return
1 parent 0c71f5a commit 20b86d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

model_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def decode_batch(self, bodies, special_append=None, max_output_length=100, sampl
132132
elif return_scores:
133133
return outputs, scores.tolist()
134134
else:
135-
return outputs
135+
# return outputs
136+
return outputs, end_indices
136137

137138
def decode_beam_batch(self, bodies, beam_size=3, max_output_length=100, sample=False):
138139
if self.mode != 'eval':

0 commit comments

Comments
 (0)