Skip to content

Commit

Permalink
fix batch offset computation (deepjavalibrary#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohithkrn authored Aug 8, 2023
1 parent b7d9d74 commit 4cb61da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/python/setup/djl_python/fastertransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def inference(self, inputs: Input):
"generated_text": s
} for s in result[offset:offset + input_size[i]]]
outputs.add(generated_text, key=inputs.get_content().key_at(i))
offset = offset + input_size[i]

return outputs

Expand Down

0 comments on commit 4cb61da

Please sign in to comment.