Skip to content

Commit fb83c48

Browse files
add-roi_align
1 parent beaecfc commit fb83c48

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_roi_align.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)