trivially convert std::copy output to mutable_data_ptr (#98755)
Differential Revision: [D44834597](https://our.internmc.facebook.com/intern/diff/D44834597/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98755
Approved by: https://github.com/ezyang