@@ -111,6 +111,11 @@ def test_qnn_backend_arange(self):
111111 for i , module in enumerate (modules ):
112112 with self .subTest (i = i ):
113113 self .lower_module_and_test_output (module , sample_input )
114+
115+ def test_qnn_backend_argmin (self ):
116+ module = Conv2dArgmin () # noqa: F405
117+ sample_input = (torch .randn (16 , 3 , 16 , 16 ),)
118+ self .lower_module_and_test_output (module , sample_input )
114119
115120 def test_qnn_backend_avg_pool2d (self ):
116121 module = AvgPoolModule () # noqa: F405
@@ -682,6 +687,11 @@ def test_qnn_backend_view(self):
682687 sample_input = (torch .randn ([1 , 8 , 512 ]), torch .randn ([1 , 2 , 8 , 256 ]))
683688 self .lower_module_and_test_output (module , sample_input )
684689
690+ def test_qnn_backend_argmin (self ):
691+ module = Conv2dArgmin () # noqa: F405
692+ sample_input = (torch .randn (16 , 3 , 16 , 16 ),)
693+ self .lower_module_and_test_output (module , sample_input )
694+
685695
686696class TestQNNFloatingPointModel (TestQNN ):
687697 # TODO: refactor to support different backends
@@ -939,6 +949,12 @@ def test_qnn_backend_arange(self):
939949 module = self .get_qdq_module (module , sample_input )
940950 self .lower_module_and_test_output (module , sample_input )
941951
952+ def test_qnn_backend_argmin (self ):
953+ module = Conv2dArgmin () # noqa: F405
954+ sample_input = (torch .randn (16 , 3 , 16 , 16 ),)
955+ module = self .get_qdq_module (module , sample_input )
956+ self .lower_module_and_test_output (module , sample_input )
957+
942958 def test_qnn_backend_avg_pool2d (self ):
943959 module = AvgPoolModule () # noqa: F405
944960 sample_input = (torch .randn (1 , 3 , 2 , 2 ),)
@@ -1587,6 +1603,8 @@ def test_qnn_backend_view(self):
15871603 module = self .get_qdq_module (module , sample_input )
15881604 self .lower_module_and_test_output (module , sample_input )
15891605
1606+
1607+
15901608
15911609class TestQNNQuantizedModel (TestQNN ):
15921610 # TODO: refactor to support different backends
0 commit comments