[fix] mark non-differentiable ops (#62529)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/62506
Fixes https://github.com/pytorch/pytorch/issues/62504
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62529
Reviewed By: albanD
Differential Revision: D30032665
Pulled By: malfet
fbshipit-source-id: 90254c50fb4a873e3eda59c8484626137e01cb31