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 6. But there might be caveats.