Check all CUDA API calls for errors in test/ (#74921) (#83954)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74921
Test Plan: Sandcastle
Reviewed By: ezyang, malfet, ngimel
Differential Revision: D35194966
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83954
Approved by: https://github.com/ezyang