Revert "Use sudo when reset NVIDIA devices (#88531)"
This reverts commit 505486ce9321bc22d2156a1a9b97fe474a05b53b.
Reverted https://github.com/pytorch/pytorch/pull/88531 on behalf of https://github.com/huydhn due to Wrong sudo echo usage, should use tee instead