Byte-for-byte compatibility fixes in codegen (#44879)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/44879
Test Plan: Imported from OSS
Reviewed By: ezyang
Differential Revision: D23825163
Pulled By: bdhirsh
fbshipit-source-id: 4d8028274f82c401b393c4fe1b9e32de3f4909c6