Add Deploy to PredictorContainer (#58503)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58503
add gflags to force using deploy for torchscript models
Test Plan: Add parametrization to PredictorContainer test to exercise gflag override and test deploy codepath. Add test case to exercise new torch.package codepath.
Reviewed By: suo
Differential Revision: D28246793
fbshipit-source-id: 88a2c8322c89284e3c8e14fee5f20e9d8a4ef300