@@ -154,7 +154,7 @@ def generate_trt_nodes_num(attrs, dynamic_shape):
154154 attrs , False ), 1e-5
155155 self .trt_param .precision = paddle_infer .PrecisionType .Half
156156 yield self .create_inference_config (), generate_trt_nodes_num (
157- attrs , False ), 1e-2
157+ attrs , False ), 1e-5
158158
159159 # for dynamic_shape
160160 generate_dynamic_shape (attrs )
@@ -163,17 +163,16 @@ def generate_trt_nodes_num(attrs, dynamic_shape):
163163 True ), 1e-5
164164 self .trt_param .precision = paddle_infer .PrecisionType .Half
165165 yield self .create_inference_config (), generate_trt_nodes_num (attrs ,
166- True ), 1e-2
166+ True ), 1e-5
167167
168168 def add_skip_trt_case (self ):
169169 def teller1 (program_config , predictor_config ):
170170 if len (program_config .inputs ) == 3 :
171171 return True
172172 return False
173173
174- self .add_skip_case (
175- teller1 , SkipReasons .TRT_NOT_SUPPORT ,
176- "INPUT RoisNum NOT SUPPORT: we need to add support in the future" )
174+ self .add_skip_case (teller1 , SkipReasons .TRT_NOT_SUPPORT ,
175+ "INPUT RoisNum NOT SUPPORT" )
177176
178177 def teller2 (program_config , predictor_config ):
179178 if (program_config .ops [0 ].attrs ['sampling_ratio' ] == - 1 and
@@ -183,8 +182,7 @@ def teller2(program_config, predictor_config):
183182
184183 self .add_skip_case (
185184 teller2 , SkipReasons .TRT_NOT_SUPPORT ,
186- "SAMPLING_RATIO EQUAL TO - 1 WHEN ALIGNED IS TRUE IS NOT SUPPORT: we need to add support in the future"
187- )
185+ "SAMPLING_RATIO EQUAL TO - 1 WHEN ALIGNED IS TRUE IS NOT SUPPORT" )
188186
189187 def test (self ):
190188 self .add_skip_trt_case ()
0 commit comments