CTC loss produced 'Nan' when using spatial features from AlexNet

This post suggests to use zero_infinity. Could you use it, if not already done, and check the targets for all blanks?