@@ -856,6 +856,14 @@ def test_qnn_backend_log(self):
856856 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
857857 self .lower_module_and_test_output (module , sample_input )
858858
859+ def test_qnn_backend_logical_and (self ):
860+ module = LogicalAnd () # noqa: F405
861+ input1 = torch .tensor ([True , False , True , False ])
862+ input2 = torch .tensor ([True , True , False , False ])
863+ sample_input = (input1 , input2 )
864+ self .lower_module_and_test_output (module , sample_input )
865+
866+
859867 def test_qnn_backend_logical_not (self ):
860868 module = LogicalNot () # noqa: F405
861869 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
@@ -2244,6 +2252,14 @@ def test_qnn_backend_log(self):
22442252 module = self .get_qdq_module (module , sample_input )
22452253 self .lower_module_and_test_output (module , sample_input )
22462254
2255+ def test_qnn_backend_logical_and (self ):
2256+ module = LogicalAnd () # noqa: F405
2257+ input1 = torch .tensor ([True , False , True , False ])
2258+ input2 = torch .tensor ([True , True , False , False ])
2259+ sample_input = (input1 , input2 )
2260+ module = self .get_qdq_module (module , sample_input )
2261+ self .lower_module_and_test_output (module , sample_input )
2262+
22472263 def test_qnn_backend_logical_not (self ):
22482264 module = LogicalNot () # noqa: F405
22492265 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
0 commit comments