fix for method_tests() random failures (#53854)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/48125 and https://github.com/pytorch/pytorch/issues/53237
The origin of the problem was that `common_methods_invocations.method_tests()` uses `set_rng_seed(0)` which is different from the seed used at `TestCase:setUp` -> `set_rng_seed(SEED)`.
As this issue might block removing old tests I also notice that this could also be the reason of test failures at PR https://github.com/pytorch/pytorch/issues/50655
Thanks
cc mruberry, kshitij12345, imaginary-person
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53854
Reviewed By: albanD
Differential Revision: D27004797
Pulled By: mruberry
fbshipit-source-id: 66a15ed900131c782bc341b16c902972d7bb2541