Transition to new tensorpipe::Pipe API. (#55193)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55193
Test Plan: CI
Reviewed By: lw
Differential Revision: D27466387
fbshipit-source-id: 07b831d699f56874dd45f37e448b8c4244ead5e3