Enable forward/backward compatibility in TS mobile (#56079)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/56079
Test Plan: Imported from OSS
Reviewed By: iseeyuan
Differential Revision: D27828149
Pulled By: tugsbayasgalan
fbshipit-source-id: 9291ddbf01853354fca0fa0a58b8115d5d2294da