Update pipeline API to accept arbitrary sequence of Tensors and not just Tuple (#48467)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48467
The current API's forward method only accepted a Tensor or a Tuple of
Tensors, making this more generic by accepting any Sequence of Tensors.
ghstack-source-id: 118436340
Test Plan: waitforbuildbot
Reviewed By: rohan-varma
Differential Revision: D25181944
fbshipit-source-id: 4db251dad52c01abc69f3d327788f2e4289e6c9d