@@ -546,6 +546,11 @@ def test_qnn_backend_minimum(self):
546546        sample_input  =  (torch .randn (1 , 2 , 3 , 4 ), torch .randn (2 , 3 , 4 ))
547547        self .lower_module_and_test_output (module , sample_input )
548548
549+     def  test_qnn_backend_neg (self ):
550+         module  =  Neg ()  # noqa: F405 
551+         sample_input  =  (torch .randn (1 , 4 , 16 , 16 ),)
552+         self .lower_module_and_test_output (module , sample_input )
553+ 
549554    def  test_qnn_backend_pad (self ):
550555        module  =  Pad ()  # noqa: F405 
551556        sample_input  =  (torch .randn ([1 , 8 , 128 ]),)
@@ -1429,6 +1434,12 @@ def test_qnn_backend_minimum(self):
14291434        module  =  self .get_qdq_module (module , sample_input )
14301435        self .lower_module_and_test_output (module , sample_input )
14311436
1437+     def  test_qnn_backend_neg (self ):
1438+         module  =  Neg ()  # noqa: F405 
1439+         sample_input  =  (torch .randn (1 , 4 , 16 , 16 ),)
1440+         module  =  self .get_qdq_module (module , sample_input )
1441+         self .lower_module_and_test_output (module , sample_input )
1442+ 
14321443    def  test_qnn_backend_pad (self ):
14331444        module  =  Pad ()  # noqa: F405 
14341445        sample_input  =  (torch .randn ([1 , 8 , 128 ]),)
0 commit comments