@@ -541,6 +541,11 @@ def test_qnn_backend_minimum(self):
541541 sample_input = (torch .randn (1 , 2 , 3 , 4 ), torch .randn (2 , 3 , 4 ))
542542 self .lower_module_and_test_output (module , sample_input )
543543
544+ def test_qnn_backend_neg (self ):
545+ module = Neg () # noqa: F405
546+ sample_input = (torch .randn (1 , 4 , 16 , 16 ),)
547+ self .lower_module_and_test_output (module , sample_input )
548+
544549 def test_qnn_backend_pad (self ):
545550 module = Pad () # noqa: F405
546551 sample_input = (torch .randn ([1 , 8 , 128 ]),)
@@ -1418,6 +1423,12 @@ def test_qnn_backend_minimum(self):
14181423 module = self .get_qdq_module (module , sample_input )
14191424 self .lower_module_and_test_output (module , sample_input )
14201425
1426+ def test_qnn_backend_neg (self ):
1427+ module = Neg () # noqa: F405
1428+ sample_input = (torch .randn (1 , 4 , 16 , 16 ),)
1429+ module = self .get_qdq_module (module , sample_input )
1430+ self .lower_module_and_test_output (module , sample_input )
1431+
14211432 def test_qnn_backend_pad (self ):
14221433 module = Pad () # noqa: F405
14231434 sample_input = (torch .randn ([1 , 8 , 128 ]),)
0 commit comments