turn back on constant folding in fbcode (#108604)
Differential Revision: [D49020794](https://our.internmc.facebook.com/intern/diff/D49020794)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108604
Approved by: https://github.com/davidberard98, https://github.com/mlazos