[ROCm] Enable test_filtering_env_var (#84100)
The test "test_filtering_env_var" requires CPU device_type along with GPU.
Hence enable both device_types for ROCm, since the PYTORCH_TESTING_DEVICE_ONLY_FOR env var will have the same effect as the code being removed, making the latter redundant anyway:
https://github.com/pytorch/pytorch/blob/9e81c0c3f46a36333e82b799b4afa79b44b6bb59/.jenkins/pytorch/test.sh#L54-L59
https://github.com/pytorch/pytorch/blob/9e81c0c3f46a36333e82b799b4afa79b44b6bb59/torch/testing/_internal/common_device_type.py#L626-L634
Signed-off-by: Jagadish Krishnamoorthy <jagdish.krishna@gmail.com>
Enables the test disabled by #56178
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84100
Approved by: https://github.com/jeffdaily, https://github.com/malfet