Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
3f40cdfb
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3f40cdfb
编写于
10月 19, 2022
作者:
Z
zlsh80826
提交者:
GitHub
10月 19, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Loose TRT fp16 tests tolerance (#47100)
上级
3c39475d
变更
19
显示空白变更内容
内联
并排
Showing
19 changed file
with
43 addition
and
43 deletion
+43
-43
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_anchor_generator.py
...ittests/ir/inference/test_trt_convert_anchor_generator.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_fc.py
...fluid/tests/unittests/ir/inference/test_trt_convert_fc.py
+7
-7
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_fill_constant.py
.../unittests/ir/inference/test_trt_convert_fill_constant.py
+1
-1
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_grid_sampler.py
...s/unittests/ir/inference/test_trt_convert_grid_sampler.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_inverse.py
.../tests/unittests/ir/inference/test_trt_convert_inverse.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_matmul_v2.py
...ests/unittests/ir/inference/test_trt_convert_matmul_v2.py
+1
-1
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pad3d.py
...id/tests/unittests/ir/inference/test_trt_convert_pad3d.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_roi_align.py
...ests/unittests/ir/inference/test_trt_convert_roi_align.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_scatter_nd_add.py
...unittests/ir/inference/test_trt_convert_scatter_nd_add.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_shape.py
...id/tests/unittests/ir/inference/test_trt_convert_shape.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_shuffle_channel.py
...nittests/ir/inference/test_trt_convert_shuffle_channel.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_stack.py
...id/tests/unittests/ir/inference/test_trt_convert_stack.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_sum.py
...luid/tests/unittests/ir/inference/test_trt_convert_sum.py
+4
-4
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_top_k.py
...id/tests/unittests/ir/inference/test_trt_convert_top_k.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_top_k_v2.py
...tests/unittests/ir/inference/test_trt_convert_top_k_v2.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_transpose.py
...ests/unittests/ir/inference/test_trt_convert_transpose.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unary.py
...id/tests/unittests/ir/inference/test_trt_convert_unary.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unfold.py
...d/tests/unittests/ir/inference/test_trt_convert_unfold.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unsqueeze2.py
...sts/unittests/ir/inference/test_trt_convert_unsqueeze2.py
+2
-2
未找到文件。
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_anchor_generator.py
浏览文件 @
3f40cdfb
...
...
@@ -103,7 +103,7 @@ class TrtConvertAnchorGeneratorTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -112,7 +112,7 @@ class TrtConvertAnchorGeneratorTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_fc.py
浏览文件 @
3f40cdfb
...
...
@@ -124,7 +124,7 @@ class TrtConvertFcTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-
5
,
1e-5
)
attrs
,
False
),
(
1e-
3
,
1e-3
)
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -133,7 +133,7 @@ class TrtConvertFcTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
(
1e-
5
,
1e-5
)
attrs
,
True
),
(
1e-
3
,
1e-3
)
def
test
(
self
):
self
.
run_test
()
...
...
@@ -234,14 +234,14 @@ class TrtConvertFcTest2(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
5
,
1e-5
)
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
3
,
1e-3
)
# for dynamic_shape
generate_dynamic_shape
()
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
5
,
1e-5
)
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
3
,
1e-3
)
def
test
(
self
):
self
.
run_test
()
...
...
@@ -339,16 +339,16 @@ class TrtConvertFcTest3(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
5
,
1e-5
)
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
3
,
1e-3
)
# for dynamic_shape
generate_dynamic_shape
()
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
5
,
1e-5
)
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
3
,
1e-3
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
5
,
1e-5
)
yield
self
.
create_inference_config
(),
(
1
,
2
),
(
1e-
3
,
1e-3
)
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_fill_constant.py
浏览文件 @
3f40cdfb
...
...
@@ -134,7 +134,7 @@ class TrtConvertSplitTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_grid_sampler.py
浏览文件 @
3f40cdfb
...
...
@@ -92,14 +92,14 @@ class TrtConvertGridSampler(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
0
,
4
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
0
,
4
),
1e-
5
yield
self
.
create_inference_config
(),
(
0
,
4
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_inverse.py
浏览文件 @
3f40cdfb
...
...
@@ -82,14 +82,14 @@ class TrtConvertInverse(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_matmul_v2.py
浏览文件 @
3f40cdfb
...
...
@@ -305,7 +305,7 @@ class TrtConvertMatmulTest_dynamic3(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
3
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pad3d.py
浏览文件 @
3f40cdfb
...
...
@@ -88,14 +88,14 @@ class TrtConvertPad3d(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_roi_align.py
浏览文件 @
3f40cdfb
...
...
@@ -162,7 +162,7 @@ class TrtConvertRoiAlignTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -171,7 +171,7 @@ class TrtConvertRoiAlignTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
add_skip_trt_case
(
self
):
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_scatter_nd_add.py
浏览文件 @
3f40cdfb
...
...
@@ -100,14 +100,14 @@ class TrtConvertScatterNd(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
0
,
5
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
0
,
5
),
1e-
5
yield
self
.
create_inference_config
(),
(
0
,
5
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
4
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
4
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
4
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_shape.py
浏览文件 @
3f40cdfb
...
...
@@ -103,14 +103,14 @@ class TrtConvertSumTest(TrtLayerAutoScanTest):
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
False
),
1e-
5
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
()
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
5
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_shuffle_channel.py
浏览文件 @
3f40cdfb
...
...
@@ -95,7 +95,7 @@ class TrtConvertShuffleChannelTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -104,7 +104,7 @@ class TrtConvertShuffleChannelTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_stack.py
浏览文件 @
3f40cdfb
...
...
@@ -194,7 +194,7 @@ class TrtConvertStackTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -203,7 +203,7 @@ class TrtConvertStackTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_sum.py
浏览文件 @
3f40cdfb
...
...
@@ -173,14 +173,14 @@ class TrtConvertSumTest(TrtLayerAutoScanTest):
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
False
),
1e-
5
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
()
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
5
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
@@ -279,14 +279,14 @@ class TrtConvertSumTest1(TrtLayerAutoScanTest):
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
False
),
1e-
5
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
()
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
5
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_top_k.py
浏览文件 @
3f40cdfb
...
...
@@ -117,7 +117,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
## for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -126,7 +126,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_top_k_v2.py
浏览文件 @
3f40cdfb
...
...
@@ -134,7 +134,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -143,7 +143,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_transpose.py
浏览文件 @
3f40cdfb
...
...
@@ -137,7 +137,7 @@ class TrtConvertTransposeTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -146,7 +146,7 @@ class TrtConvertTransposeTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unary.py
浏览文件 @
3f40cdfb
...
...
@@ -121,7 +121,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -130,7 +130,7 @@ class TrtConvertActivationTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unfold.py
浏览文件 @
3f40cdfb
...
...
@@ -87,14 +87,14 @@ class TrtConvertUnfold(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
0
,
3
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
5
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_unsqueeze2.py
浏览文件 @
3f40cdfb
...
...
@@ -101,7 +101,7 @@ class TrtConvertSplitTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
1e-
5
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -110,7 +110,7 @@ class TrtConvertSplitTest(TrtLayerAutoScanTest):
attrs
,
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
1e-
5
attrs
,
True
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录