44# LICENSE file in the root directory of this source tree.
55
66
7- from copy import copy
87from typing import Tuple
98
10- import pytest
119import torch
1210from executorch .backends .arm .test import common
1311from executorch .backends .arm .test .tester .test_pipeline import (
@@ -62,9 +60,6 @@ class BitwiseBinary(torch.nn.Module):
6260
6361 test_data = {** test_data_non_bool , ** test_data_bool }
6462
65- test_data_u85 = copy (test_data )
66- del test_data_u85 ["zeros" ]
67-
6863
6964class BitwiseBinaryScalar (torch .nn .Module ):
7065 test_data_non_bool = {
@@ -95,9 +90,6 @@ class BitwiseBinaryScalar(torch.nn.Module):
9590
9691 test_data = {** test_data_non_bool , ** test_data_bool }
9792
98- test_data_u85 = copy (test_data )
99- del test_data_u85 ["zeros" ]
100-
10193
10294class And (BitwiseBinary ):
10395 aten_op = "torch.ops.aten.bitwise_and.Tensor"
@@ -269,7 +261,7 @@ def test_bitwise_and_scalar_u55_INT(test_data: input_t2):
269261 pipeline .run ()
270262
271263
272- @common .parametrize ("test_data" , AndScalar .test_data_u85 )
264+ @common .parametrize ("test_data" , AndScalar .test_data )
273265@common .XfailIfNoCorstone320
274266def test_bitwise_and_scalar_u85_INT (test_data : input_t2 ):
275267 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -284,7 +276,7 @@ def test_bitwise_and_scalar_u85_INT(test_data: input_t2):
284276 pipeline .run ()
285277
286278
287- @common .parametrize ("test_data" , And ().test_data_u85 )
279+ @common .parametrize ("test_data" , And ().test_data )
288280@common .XfailIfNoCorstone320
289281def test_bitwise_and_tensor_u85_INT (test_data : input_t2 ):
290282 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -476,7 +468,7 @@ def test_bitwise_xor_scalar_u55_INT(test_data: input_t2):
476468 pipeline .run ()
477469
478470
479- @common .parametrize ("test_data" , Xor ().test_data_u85 )
471+ @common .parametrize ("test_data" , Xor ().test_data )
480472@common .XfailIfNoCorstone320
481473def test_bitwise_xor_tensor_u85_INT (test_data : input_t2 ):
482474 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -491,7 +483,7 @@ def test_bitwise_xor_tensor_u85_INT(test_data: input_t2):
491483 pipeline .run ()
492484
493485
494- @common .parametrize ("test_data" , XorScalar .test_data_u85 )
486+ @common .parametrize ("test_data" , XorScalar .test_data )
495487@common .XfailIfNoCorstone320
496488def test_bitwise_xor_scalar_u85_INT (test_data : input_t2 ):
497489 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -683,7 +675,7 @@ def test_bitwise_or_scalar_u55_INT(test_data: input_t2):
683675 pipeline .run ()
684676
685677
686- @common .parametrize ("test_data" , Or ().test_data_u85 )
678+ @common .parametrize ("test_data" , Or ().test_data )
687679@common .XfailIfNoCorstone320
688680def test_bitwise_or_tensor_u85_INT (test_data : input_t2 ):
689681 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -698,7 +690,7 @@ def test_bitwise_or_tensor_u85_INT(test_data: input_t2):
698690 pipeline .run ()
699691
700692
701- @common .parametrize ("test_data" , OrScalar .test_data_u85 )
693+ @common .parametrize ("test_data" , OrScalar .test_data )
702694@common .XfailIfNoCorstone320
703695def test_bitwise_or_scalar_u85_INT (test_data : input_t2 ):
704696 pipeline = EthosU85PipelineINT [input_t2 ](
@@ -775,30 +767,3 @@ def test_bitwise_or_scalar_vgf_quant(test_data: input_t2):
775767 quantize = True ,
776768 )
777769 pipeline .run ()
778-
779-
780- @pytest .mark .xfail (
781- reason = "MLBEDSW-11029: Fatal Python floating point error in Vela for rank 4 bitwse ops with int32 dtype."
782- )
783- def test_bitwise_or_tensor_u85_INT_zeros ():
784- raise RuntimeError (
785- "Dummy test to xfail mark u85 zeros test case since running the actual test causes a fatal crash."
786- )
787-
788-
789- @pytest .mark .xfail (
790- reason = "MLBEDSW-11029: Fatal Python floating point error in Vela for rank 4 bitwse ops with int32 dtype."
791- )
792- def test_bitwise_and_tensor_u85_INT_zeros ():
793- raise RuntimeError (
794- "Dummy test to xfail mark u85 zeros test case since running the actual test causes a fatal crash."
795- )
796-
797-
798- @pytest .mark .xfail (
799- reason = "MLBEDSW-11029: Fatal Python floating point error in Vela for rank 4 bitwse ops with int32 dtype."
800- )
801- def test_bitwise_xor_tensor_u85_INT_zeros ():
802- raise RuntimeError (
803- "Dummy test to xfail mark u85 zeros test case since running the actual test causes a fatal crash."
804- )
0 commit comments