Resent the reverted PR: Add register_frozenpython.cpp to the torch::deploy interpreter library in the OSS build (#67303)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67303
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D32016061
Pulled By: shunting314
fbshipit-source-id: 9460c90dd4f630f4c81dbfbbd772446ddffbabd0