I am aware that shimming the loss into a python class is one way to fix this; in fact all other CTC pytorch bindings do it this way.
As wrapping THNN functionality in python classes inside pytorch seems to be the legacy way of doing it (assumed from all the code in legacy/ doing it), is it realistic to get such a wrapped loss function merged into mainline? The point of this whole exercise is to have CTC loss directly in pytorch without having to compile extra extensions and so on.