transformers/tests/models/vision_encoder_decoder
Xin Qiu b31905d1f6
Fix remaining issues in beam score calculation (#27808)
* Fix issues in add and is_done for BeamHypotheses

* make newly added arguments optional for better compatibility

* Directly use cur_len as generated_len, add note for retrocompatibility

* update test expectation

* make cur_len represents the length of the entire sequence including the decoder prompt

* remove redundant if/else in testing
2023-12-08 14:14:16 +01:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_modeling_flax_vision_encoder_decoder.py Update old existing feature extractor references (#24552) 2023-06-29 10:17:36 +01:00
test_modeling_tf_vision_encoder_decoder.py [Styling] stylify using ruff (#27144) 2023-11-16 17:43:19 +01:00
test_modeling_vision_encoder_decoder.py Fix remaining issues in beam score calculation (#27808) 2023-12-08 14:14:16 +01:00