KEMBAR78
TF beam search: handle case without past by gante · Pull Request #16704 · huggingface/transformers · GitHub
Skip to content

Conversation

@gante
Copy link
Member

@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
Member 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