[Generate] Fix output scores greedy search (#17442)
[Generate] Fix output scores greedy search (#17442)


huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers