@@ -143,6 +143,11 @@ def test_qnn_backend_conv_transpose2d(self):
143143 with self .subTest (i = i ):
144144 self .lower_module_and_test_output (module , sample_input )
145145
146+ def test_qnn_backend_cos (self ):
147+ module = Cos () # noqa: F405
148+ sample_input = (torch .randn (2 , 5 , 1 , 3 ),)
149+ self .lower_module_and_test_output (module , sample_input )
150+
146151 def test_qnn_backend_einsum_outer_product (self ):
147152 module = EinsumOuterProduct () # noqa: F405
148153 x = torch .randn (5 )
@@ -465,6 +470,11 @@ def test_qnn_backend_sigmoid(self):
465470 sample_input = (torch .randn ([1 , 3 , 3 , 3 ]),)
466471 self .lower_module_and_test_output (module , sample_input )
467472
473+ def test_qnn_backend_sin (self ):
474+ module = Sin () # noqa: F405
475+ sample_input = (torch .randn (2 , 5 , 1 , 3 ),)
476+ self .lower_module_and_test_output (module , sample_input )
477+
468478 def test_qnn_backend_select_copy (self ):
469479 module = SelectCopy () # noqa: F405
470480 sample_input = (torch .randn ([1 , 3 , 3 , 3 ]),)
@@ -825,6 +835,12 @@ def test_qnn_backend_conv_transpose2d(self):
825835 module = self .get_qdq_module (module , sample_input )
826836 self .lower_module_and_test_output (module , sample_input )
827837
838+ def test_qnn_backend_cos (self ):
839+ module = Cos () # noqa: F405
840+ sample_input = (torch .randn (2 , 5 , 1 , 3 ),)
841+ module = self .get_qdq_module (module , sample_input )
842+ self .lower_module_and_test_output (module , sample_input )
843+
828844 def test_qnn_backend_einsum_outer_product (self ):
829845 module = EinsumOuterProduct () # noqa: F405
830846 x = torch .randn (5 )
@@ -1201,6 +1217,12 @@ def test_qnn_backend_sigmoid(self):
12011217 module = self .get_qdq_module (module , sample_input )
12021218 self .lower_module_and_test_output (module , sample_input )
12031219
1220+ def test_qnn_backend_sin (self ):
1221+ module = Sin () # noqa: F405
1222+ sample_input = (torch .randn (2 , 5 , 1 , 3 ),)
1223+ module = self .get_qdq_module (module , sample_input )
1224+ self .lower_module_and_test_output (module , sample_input )
1225+
12041226 def test_qnn_backend_slice_copy (self ):
12051227 modules = [SliceCopy (), SliceCopyWithStep ()] # noqa: F405
12061228 sample_input = (
0 commit comments