Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
d53bd8c1
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d53bd8c1
编写于
10月 19, 2022
作者:
Z
zlsh80826
提交者:
GitHub
10月 19, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Loose TRT half test tolerance to 1e-3 (#47106)
上级
3f40cdfb
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
20 deletion
+20
-20
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_expand_v2.py
...ests/unittests/ir/inference/test_trt_convert_expand_v2.py
+4
-4
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_reduce_sum.py
...sts/unittests/ir/inference/test_trt_convert_reduce_sum.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_reshape.py
.../tests/unittests/ir/inference/test_trt_convert_reshape.py
+4
-4
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_roll.py
...uid/tests/unittests/ir/inference/test_trt_convert_roll.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_slice.py
...id/tests/unittests/ir/inference/test_trt_convert_slice.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_split.py
...id/tests/unittests/ir/inference/test_trt_convert_split.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_squeeze2.py
...tests/unittests/ir/inference/test_trt_convert_squeeze2.py
+2
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_tile.py
...uid/tests/unittests/ir/inference/test_trt_convert_tile.py
+2
-2
未找到文件。
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_expand_v2.py
浏览文件 @
d53bd8c1
...
...
@@ -149,7 +149,7 @@ class TrtConvertExpandV2Test(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
)
...
...
@@ -158,7 +158,7 @@ class TrtConvertExpandV2Test(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
...
...
@@ -251,7 +251,7 @@ class TrtConvertExpandV2Test2(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
...
...
@@ -402,7 +402,7 @@ class TrtConvertExpandV2Test3(TrtLayerAutoScanTest):
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
(
4
,
3
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
(
4
,
3
),
1e-
5
yield
self
.
create_inference_config
(),
(
4
,
3
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_reduce_sum.py
浏览文件 @
d53bd8c1
...
...
@@ -123,7 +123,7 @@ class TrtConvertReduceSumTest(TrtLayerAutoScanTest):
attrs
,
False
),
(
1e-5
,
1e-5
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-
4
,
1e-4
)
attrs
,
False
),
(
1e-
3
,
1e-3
)
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -132,7 +132,7 @@ class TrtConvertReduceSumTest(TrtLayerAutoScanTest):
attrs
,
True
),
(
1e-5
,
1e-5
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
(
1e-
4
,
1e-4
)
attrs
,
True
),
(
1e-
3
,
1e-3
)
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_reshape.py
浏览文件 @
d53bd8c1
...
...
@@ -164,7 +164,7 @@ class TrtConvertReshapeTest(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
)
...
...
@@ -173,7 +173,7 @@ class TrtConvertReshapeTest(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
...
...
@@ -297,7 +297,7 @@ class TrtConvertReshapeTest2(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
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
@@ -409,7 +409,7 @@ class TrtConvertReshapeTest3(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
yield
self
.
create_inference_config
(),
(
1
,
2
),
1e-
3
def
add_skip_trt_case
(
self
):
pass
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_roll.py
浏览文件 @
d53bd8c1
...
...
@@ -106,7 +106,7 @@ class TrtConvertRollTest(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-
4
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -115,7 +115,7 @@ class TrtConvertRollTest(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-
4
attrs
,
True
),
1e-
3
def
test
(
self
):
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_slice.py
浏览文件 @
d53bd8c1
...
...
@@ -128,7 +128,7 @@ class TrtConvertSliceTest(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-
4
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -137,7 +137,7 @@ class TrtConvertSliceTest(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-
4
attrs
,
True
),
1e-
3
def
test
(
self
):
# TODO(inference): fix.
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_split.py
浏览文件 @
d53bd8c1
...
...
@@ -219,7 +219,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
)
...
...
@@ -228,7 +228,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
):
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_squeeze2.py
浏览文件 @
d53bd8c1
...
...
@@ -115,7 +115,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
)
...
...
@@ -124,7 +124,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_tile.py
浏览文件 @
d53bd8c1
...
...
@@ -101,7 +101,7 @@ class TrtConvertTileTest(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-
4
attrs
,
False
),
1e-
3
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
...
...
@@ -110,7 +110,7 @@ class TrtConvertTileTest(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-
4
attrs
,
True
),
1e-
3
@
given
(
repeat_times
=
st
.
sampled_from
([[
100
],
[
1
,
2
],
[
0
,
3
],
[
1
,
2
,
100
]]))
def
test
(
self
,
*
args
,
**
kwargs
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录