Skip to content

TF beam search: handle case without past#16704

Merged
gante merged 1 commit intohuggingface:mainfrom
gante:fix_pastless_beam_search
Apr 12, 2022
Merged

TF beam search: handle case without past#16704
gante merged 1 commit intohuggingface:mainfrom
gante:fix_pastless_beam_search

Conversation

@gante
Copy link
Contributor

@gante gante commented Apr 11, 2022

What does this PR do?

Fixes tests/vision_encoder_decoder/test_modeling_tf_vision_encoder_decoder.py::TFViT2GPT2ModelIntegrationTest::test_inference_coco_en, whose root cause was in beam_search (it was not handling correctly cases without cache). This one slipped through the cracks, I probably forgot to run a final check on this test file before merging -- my bad 😅

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 11, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a small but useful change, so LGTM!

@gante
Copy link
Contributor Author

gante commented Apr 12, 2022

(merging as Patrick has approved #16713, which also contains these changes)

@gante gante merged commit eb5bdcd into huggingface:main Apr 12, 2022
@gante gante deleted the fix_pastless_beam_search branch April 12, 2022 19:46
elusenji pushed a commit to elusenji/transformers that referenced this pull request Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants