Creating custom RNNs that work with packed sequences

Well, an alternative solution might be to ignore padding and packing (for the time being). I usually create batches that ensure the input and/or target sequences have the same lengths. But there might be caveats.