@@ -924,6 +924,14 @@ 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+
934+
927935 def test_qnn_backend_logical_not (self ):
928936 module = LogicalNot () # noqa: F405
929937 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
@@ -2484,6 +2492,14 @@ def test_qnn_backend_log(self):
24842492 module = self .get_qdq_module (module , sample_input )
24852493 self .lower_module_and_test_output (module , sample_input )
24862494
2495+ def test_qnn_backend_logical_and (self ):
2496+ module = LogicalAnd () # noqa: F405
2497+ input1 = torch .tensor ([0.0 ])
2498+ input2 = torch .tensor ([1.0 ])
2499+ sample_input = (input1 , input2 )
2500+ module = self .get_qdq_module (module , sample_input )
2501+ self .lower_module_and_test_output (module , sample_input )
2502+
24872503 def test_qnn_backend_logical_not (self ):
24882504 module = LogicalNot () # noqa: F405
24892505 sample_input = (torch .rand ([1 , 2 , 3 , 4 ]),)
0 commit comments