[test_shape_ops] Increase system memory requirement (#80369)

Increase system memory requirement for TestShapeOpsCUDA.test_flip_large_tensor_cuda

Signed-off-by: Jagadish Krishnamoorthy <jagdish.krishna@gmail.com>

Fixes https://github.com/pytorch/pytorch/issues/80373

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80369
Approved by: https://github.com/soulitzer
This commit is contained in:
Jagadish Krishnamoorthy
2022-06-29 23:11:12 +00:00
committed by PyTorch MergeBot
parent c44317704a
commit 70e86b4562

View File

@ -475,6 +475,7 @@ class TestShapeOps(TestCase):
@onlyCUDA # CPU is too slow
@largeTensorTest('17GB') # 4 tensors of 4GB (in, out) x (torch, numpy) + 1GB
@largeTensorTest("81GB", "cpu") # even for CUDA test, sufficient system memory is required
def test_flip_large_tensor(self, device):
t_in = torch.empty(2**32 + 1, dtype=torch.uint8).random_()
torch_fn = partial(torch.flip, dims=(0,))