Like @drkw said, this error is wrong and it means the given input lengths are too long. I stumbled on this because I forgot to remove the receptive field from my input lengths.
@drkw proposed a fix:

  
      github.com/pytorch/pytorch
  
  
      
    
  


  ctc_loss error message bug fix. 62



  by drkw1git
  on 08:14AM - 09 Feb 19 UTC



  1 commits
  changed 1 files
  with 1 additions
  and 1 deletions.