"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "474bf508dfe0d46fc38585a1bb793e5ba74fddfd"
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
Showing
Please register or sign in to comment