@@ -924,6 +924,13 @@ def test_qnn_backend_log(self):
924
924
sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
925
925
self .lower_module_and_test_output (module , sample_input )
926
926
927
+ def test_qnn_backend_logical_and (self ):
928
+ module = LogicalAnd () # noqa: F405
929
+ input1 = torch .tensor ([True , False , True , False ])
930
+ input2 = torch .tensor ([True , True , False , False ])
931
+ sample_input = (input1 , input2 )
932
+ self .lower_module_and_test_output (module , sample_input )
933
+
927
934
def test_qnn_backend_logical_not (self ):
928
935
module = LogicalNot () # noqa: F405
929
936
sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
@@ -2484,6 +2491,14 @@ def test_qnn_backend_log(self):
2484
2491
module = self .get_qdq_module (module , sample_input )
2485
2492
self .lower_module_and_test_output (module , sample_input )
2486
2493
2494
+ def test_qnn_backend_logical_and (self ):
2495
+ module = LogicalAnd () # noqa: F405
2496
+ input1 = torch .tensor ([0.0 ])
2497
+ input2 = torch .tensor ([1.0 ])
2498
+ sample_input = (input1 , input2 )
2499
+ module = self .get_qdq_module (module , sample_input )
2500
+ self .lower_module_and_test_output (module , sample_input )
2501
+
2487
2502
def test_qnn_backend_logical_not (self ):
2488
2503
module = LogicalNot () # noqa: F405
2489
2504
sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
0 commit comments