From fbaef4c64b306651c5f2542dcbb06cf9f6f8a5ed Mon Sep 17 00:00:00 2001 From: qihqi Date: Wed, 7 Feb 2024 12:46:30 -0800 Subject: [PATCH] Remove random tests in test_core_aten_ops (#6436) --- test/test_core_aten_ops.py | 303 ------------------------------------- 1 file changed, 303 deletions(-) diff --git a/test/test_core_aten_ops.py b/test/test_core_aten_ops.py index 93651b9a8e0..5bf70dc0edc 100644 --- a/test/test_core_aten_ops.py +++ b/test/test_core_aten_ops.py @@ -808,195 +808,6 @@ def test_aten_bmm_2(self): kwargs = dict() run_export_and_compare(self, torch.ops.aten.bmm, args, kwargs) - @unittest.skip - def test_aten_rand_0(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_1(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_2(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_3(self): - args = ([ - 2, - 1, - ],) - kwargs = dict() - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_4(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_5(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_6(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_7(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_8(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_9(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_10(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_11(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - - @unittest.skip - def test_aten_rand_12(self): - args = ([ - 10, - 10, - ],) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.rand, args, kwargs) - def test_aten_cat_0(self): args = ( [ @@ -1970,114 +1781,6 @@ def test_aten_hardtanh_2(self): kwargs = dict() run_export_and_compare(self, torch.ops.aten.hardtanh, args, kwargs) - @unittest.skip - def test_aten_randint_low_0(self): - args = ( - 0, - 10, - [ - 1, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - - @unittest.skip - def test_aten_randint_low_1(self): - args = ( - 0, - 10, - [ - 1, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - - @unittest.skip - def test_aten_randint_low_2(self): - args = ( - 0, - 10, - [ - 1, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - - @unittest.skip - def test_aten_randint_low_3(self): - args = ( - 0, - 2, - [ - 2, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - - @unittest.skip - def test_aten_randint_low_4(self): - args = ( - 0, - 2, - [ - 2, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - - @unittest.skip - def test_aten_randint_low_5(self): - args = ( - 0, - 2, - [ - 2, - ], - ) - kwargs = dict(( - "device", - cpu, - ), ( - "pin_memory", - False, - )) - run_export_and_compare(self, torch.ops.aten.randint.low, args, kwargs) - def test_aten_index_put_0(self): args = ( torch.randn((10, 10)).to(torch.float32), @@ -3348,12 +3051,6 @@ def test_aten_prod_dim_int_1(self): kwargs = dict() run_export_and_compare(self, torch.ops.aten.prod.dim_int, args, kwargs) - @unittest.skip - def test_aten_randperm_0(self): - args = (20,) - kwargs = dict() - run_export_and_compare(self, torch.ops.aten.randperm, args, kwargs) - def test_aten_reciprocal_0(self): args = (torch.randn((10, 10)).to(torch.float32),) kwargs = dict()