support PackedSequence type for apply_for_tensors
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76265
support PackedSequence type for apply_for_tensors, some rnn modules outputs are PackedSequence types
Differential Revision: [D35862156](https://our.internmc.facebook.com/intern/diff/D35862156/)
Approved by: https://github.com/mrshenli, https://github.com/rohan-varma