Move inplace view tests to generic testing framework (#36281)
Summary:
So that all these tests run on CUDA as well.
This PR is preparation for https://github.com/pytorch/pytorch/pull/36073
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36281
Differential Revision: D20931467
Pulled By: ailzhang
fbshipit-source-id: e70c2c1981d9557c4b7ed5e0bd85345e298bf63c