Enhancement for smart serialization for out schemas (#63096)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63096
Test Plan: Imported from OSS
Reviewed By: gmagogsfm
Differential Revision: D30415255
Pulled By: tugsbayasgalan
fbshipit-source-id: eb40440a3b46258394d035479f5fc4a4baa12bcc