@@ -924,6 +924,13 @@ def test_qnn_backend_log(self):
924924 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
925925 self .lower_module_and_test_output (module , sample_input )
926926
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+
927934 def test_qnn_backend_logical_not (self ):
928935 module = LogicalNot () # noqa: F405
929936 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
@@ -2484,6 +2491,14 @@ def test_qnn_backend_log(self):
24842491 module = self .get_qdq_module (module , sample_input )
24852492 self .lower_module_and_test_output (module , sample_input )
24862493
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+
24872502 def test_qnn_backend_logical_not (self ):
24882503 module = LogicalNot () # noqa: F405
24892504 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
0 commit comments