Fix gradient checkpointing bug in Speecht5
This PR fixes a bug that a user can encounter while using generate and models that use gradient_checkpointing.

Fixes Issue https://github.com/huggingface/transformers/issues/21737

cc @younesbelkada or @gante
Sorry fixed that<|||||>_The documentation is not available anymore as the PR was closed or merged._<|||||>@KMFODA it is possible that this is the wrong branch -- the diff doesn't contain changes to speecht5 :)<|||||>Yes the diff seems to have changed a bit, can you please double check 🙏 @KMFODA ?<|||||>Sorry yes I think the branches were mixed up. This should now introduce the changes to SpeechT5 and fix the formatting issues @gante spotted in [modeling_speech_to_text.py](https://github.com/huggingface/transformers/pull/22080/commits/4da5f4baaf4eddb71787ba4dbbbd3791953e481a).<|||||>Perfect, thank you for the changes @KMFODA 💛 