You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[API] Move the zero_infinity parameter of CTCLoss from the forward function to the constructor (#76156)
* Enhance CTC loss with zero_infinity parameter
Added 'zero_infinity' parameter to CTC loss initialization and forward method.
* Refactor constructor in loss.py for clarity
* Change zero_infinity type to optional boolean
* Add Optional import to loss.py
* Change default value of zero_infinity to False
* Remove unnecessary import of Optional from typing
* Update zero_infinity handling in ctc_loss function
Refactor zero_infinity parameter handling in CTC loss.
0 commit comments