convert trivial assignments to use mutable_data_ptr (#98752)
Differential Revision: [D44834422](https://our.internmc.facebook.com/intern/diff/D44834422/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98752
Approved by: https://github.com/ezyang