Revert "Back out "[const_fold] Set requires_grad based on the folded tensor; add device_for_folding option" (#79655)"
This reverts commit 24c2aff1b23729b5ded089ffbc81ac3239fc47bd.
Reverted https://github.com/pytorch/pytorch/pull/79655 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally