replace onlyOnCPUAndCUDA with onlyNativeDeviceTypes (#65201)
Summary:
Reference https://github.com/pytorch/pytorch/issues/53849
Replace `onlyOnCPUandCUDA` with `onlyNativeDeviceTypes` which includes `cpu, cuda and meta`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65201
Reviewed By: mrshenli
Differential Revision: D31299718
Pulled By: mruberry
fbshipit-source-id: 2d8356450c035d6a314209ab51b2c237583920fd