@@ -109,8 +109,8 @@ def forward(self, tensor1: torch.Tensor, tensor2: torch.Tensor):
109109
110110
111111class AndScalar (BitwiseBinaryScalar ):
112- aten_op = "torch.ops.aten.bitwise_and.Scalar"
113112 # Tensor because it gets converted from Scalar -> Tensor in lowering
113+ aten_op = "torch.ops.aten.bitwise_and.Tensor"
114114 exir_op = "executorch_exir_dialects_edge__ops_aten_bitwise_and_Tensor"
115115 exir_op_scalar = "executorch_exir_dialects_edge__ops_aten_bitwise_and_Scalar"
116116
@@ -119,8 +119,8 @@ def forward(self, tensor: torch.Tensor, scalar: int):
119119
120120
121121class XorScalar (BitwiseBinaryScalar ):
122- aten_op = "torch.ops.aten.bitwise_xor.Scalar"
123122 # Tensor because it gets converted from Scalar -> Tensor in lowering
123+ aten_op = "torch.ops.aten.bitwise_xor.Tensor"
124124 exir_op = "executorch_exir_dialects_edge__ops_aten_bitwise_xor_Tensor"
125125 exir_op_scalar = "executorch_exir_dialects_edge__ops_aten_bitwise_xor_Scalar"
126126
@@ -129,8 +129,8 @@ def forward(self, tensor: torch.Tensor, scalar: int):
129129
130130
131131class OrScalar (BitwiseBinaryScalar ):
132- aten_op = "torch.ops.aten.bitwise_or.Scalar"
133132 # Tensor because it gets converted from Scalar -> Tensor in lowering
133+ aten_op = "torch.ops.aten.bitwise_or.Tensor"
134134 exir_op = "executorch_exir_dialects_edge__ops_aten_bitwise_or_Tensor"
135135 exir_op_scalar = "executorch_exir_dialects_edge__ops_aten_bitwise_or_Scalar"
136136
@@ -174,8 +174,6 @@ def test_bitwise_and_tensor_tosa_INT(test_data: input_t2):
174174 rtol = 0 ,
175175 qtol = 0 ,
176176 )
177- pipeline .pop_stage ("quantize" )
178- pipeline .pop_stage ("check.quant_nodes" )
179177 pipeline .run ()
180178
181179
@@ -190,8 +188,6 @@ def test_bitwise_and_scalar_tosa_INT(test_data: input_t2):
190188 rtol = 0 ,
191189 qtol = 0 ,
192190 )
193- pipeline .pop_stage ("quantize" )
194- pipeline .pop_stage ("check.quant_nodes" )
195191 pipeline .run ()
196192
197193
@@ -239,8 +235,6 @@ def test_bitwise_and_scalar_u85_INT(test_data: input_t2):
239235 rtol = 0 ,
240236 qtol = 0 ,
241237 )
242- pipeline .pop_stage ("quantize" )
243- pipeline .pop_stage ("check.quant_nodes" )
244238 pipeline .run ()
245239
246240
@@ -256,8 +250,6 @@ def test_bitwise_and_tensor_u85_INT(test_data: input_t2):
256250 rtol = 0 ,
257251 qtol = 0 ,
258252 )
259- pipeline .pop_stage ("quantize" )
260- pipeline .pop_stage ("check.quant_nodes" )
261253 pipeline .run ()
262254
263255
@@ -296,8 +288,6 @@ def test_bitwise_and_tensor_vgf_INT(test_data: input_t2):
296288 qtol = 0 ,
297289 tosa_version = "TOSA-1.0+INT" ,
298290 )
299- pipeline .pop_stage ("quantize" )
300- pipeline .pop_stage ("check.quant_nodes" )
301291 pipeline .run ()
302292
303293
@@ -314,8 +304,6 @@ def test_bitwise_and_scalar_vgf_INT(test_data: input_t2):
314304 qtol = 0 ,
315305 tosa_version = "TOSA-1.0+INT" ,
316306 )
317- pipeline .pop_stage ("quantize" )
318- pipeline .pop_stage ("check.quant_nodes" )
319307 pipeline .run ()
320308
321309
@@ -355,8 +343,6 @@ def test_bitwise_xor_tensor_tosa_INT(test_data: input_t2):
355343 rtol = 0 ,
356344 qtol = 0 ,
357345 )
358- pipeline .pop_stage ("quantize" )
359- pipeline .pop_stage ("check.quant_nodes" )
360346 pipeline .run ()
361347
362348
@@ -371,8 +357,6 @@ def test_bitwise_xor_scalar_tosa_INT(test_data: input_t2):
371357 rtol = 0 ,
372358 qtol = 0 ,
373359 )
374- pipeline .pop_stage ("quantize" )
375- pipeline .pop_stage ("check.quant_nodes" )
376360 pipeline .run ()
377361
378362
@@ -420,8 +404,6 @@ def test_bitwise_xor_tensor_u85_INT(test_data: input_t2):
420404 rtol = 0 ,
421405 qtol = 0 ,
422406 )
423- pipeline .pop_stage ("quantize" )
424- pipeline .pop_stage ("check.quant_nodes" )
425407 pipeline .run ()
426408
427409
@@ -437,8 +419,6 @@ def test_bitwise_xor_scalar_u85_INT(test_data: input_t2):
437419 rtol = 0 ,
438420 qtol = 0 ,
439421 )
440- pipeline .pop_stage ("quantize" )
441- pipeline .pop_stage ("check.quant_nodes" )
442422 pipeline .run ()
443423
444424
@@ -477,8 +457,6 @@ def test_bitwise_xor_tensor_vgf_INT(test_data: input_t2):
477457 qtol = 0 ,
478458 tosa_version = "TOSA-1.0+INT" ,
479459 )
480- pipeline .pop_stage ("quantize" )
481- pipeline .pop_stage ("check.quant_nodes" )
482460 pipeline .run ()
483461
484462
@@ -495,8 +473,6 @@ def test_bitwise_xor_scalar_vgf_INT(test_data: input_t2):
495473 qtol = 0 ,
496474 tosa_version = "TOSA-1.0+INT" ,
497475 )
498- pipeline .pop_stage ("quantize" )
499- pipeline .pop_stage ("check.quant_nodes" )
500476 pipeline .run ()
501477
502478
@@ -536,8 +512,6 @@ def test_bitwise_or_tensor_tosa_INT(test_data: input_t2):
536512 rtol = 0 ,
537513 qtol = 0 ,
538514 )
539- pipeline .pop_stage ("quantize" )
540- pipeline .pop_stage ("check.quant_nodes" )
541515 pipeline .run ()
542516
543517
@@ -552,8 +526,6 @@ def test_bitwise_or_scalar_tosa_INT(test_data: input_t2):
552526 rtol = 0 ,
553527 qtol = 0 ,
554528 )
555- pipeline .pop_stage ("quantize" )
556- pipeline .pop_stage ("check.quant_nodes" )
557529 pipeline .run ()
558530
559531
@@ -601,8 +573,6 @@ def test_bitwise_or_tensor_u85_INT(test_data: input_t2):
601573 rtol = 0 ,
602574 qtol = 0 ,
603575 )
604- pipeline .pop_stage ("quantize" )
605- pipeline .pop_stage ("check.quant_nodes" )
606576 pipeline .run ()
607577
608578
@@ -618,8 +588,6 @@ def test_bitwise_or_scalar_u85_INT(test_data: input_t2):
618588 rtol = 0 ,
619589 qtol = 0 ,
620590 )
621- pipeline .pop_stage ("quantize" )
622- pipeline .pop_stage ("check.quant_nodes" )
623591 pipeline .run ()
624592
625593
@@ -658,8 +626,6 @@ def test_bitwise_or_tensor_vgf_INT(test_data: input_t2):
658626 qtol = 0 ,
659627 tosa_version = "TOSA-1.0+INT" ,
660628 )
661- pipeline .pop_stage ("quantize" )
662- pipeline .pop_stage ("check.quant_nodes" )
663629 pipeline .run ()
664630
665631
@@ -676,8 +642,6 @@ def test_bitwise_or_scalar_vgf_INT(test_data: input_t2):
676642 qtol = 0 ,
677643 tosa_version = "TOSA-1.0+INT" ,
678644 )
679- pipeline .pop_stage ("quantize" )
680- pipeline .pop_stage ("check.quant_nodes" )
681645 pipeline .run ()
682646
683647
0 commit comments