Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wmsofts
Paddle
提交
9b987b3d
P
Paddle
项目概览
wmsofts
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
9b987b3d
编写于
10月 10, 2021
作者:
J
JingZhuangzhuang
提交者:
GitHub
10月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add skip case for conv2d convert test (#36301)
上级
7e6c0cee
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
33 addition
and
4 deletion
+33
-4
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_conv2d_transpose.py
...ittests/ir/inference/test_trt_convert_conv2d_transpose.py
+12
-2
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_depthwise_conv2d.py
...ittests/ir/inference/test_trt_convert_depthwise_conv2d.py
+10
-1
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_depthwise_conv2d_transpose.py
.../inference/test_trt_convert_depthwise_conv2d_transpose.py
+11
-1
未找到文件。
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_conv2d_transpose.py
浏览文件 @
9b987b3d
...
@@ -173,7 +173,7 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
...
@@ -173,7 +173,7 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-5
,
1e-
5
)
attrs
,
False
),
(
1e-5
,
1e-
3
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-5
,
1e-5
)
attrs
,
False
),
(
1e-5
,
1e-5
)
...
@@ -185,7 +185,7 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
...
@@ -185,7 +185,7 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
True
),
1e-5
True
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
(
1e-5
,
1e-
5
)
attrs
,
True
),
(
1e-5
,
1e-
3
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
True
),
(
1e-5
,
1e-5
)
attrs
,
True
),
(
1e-5
,
1e-5
)
...
@@ -214,6 +214,16 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
...
@@ -214,6 +214,16 @@ class TrtConvertConv2dTransposeTest(TrtLayerAutoScanTest):
"When dilations's element is not equal 1, there are different behaviors between Trt and Paddle."
"When dilations's element is not equal 1, there are different behaviors between Trt and Paddle."
)
)
def
teller3
(
program_config
,
predictor_config
):
if
self
.
trt_param
.
precision
==
paddle_infer
.
PrecisionType
.
Int8
:
return
True
return
False
self
.
add_skip_case
(
teller3
,
SkipReasons
.
TRT_NOT_IMPLEMENTED
,
"When precisionType is int8 without relu op, output is different between Trt and Paddle."
)
def
test
(
self
):
def
test
(
self
):
self
.
add_skip_trt_case
()
self
.
add_skip_trt_case
()
self
.
run_test
()
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_depthwise_conv2d.py
浏览文件 @
9b987b3d
...
@@ -165,7 +165,6 @@ class TrtConvertDepthwiseConv2dTest(TrtLayerAutoScanTest):
...
@@ -165,7 +165,6 @@ class TrtConvertDepthwiseConv2dTest(TrtLayerAutoScanTest):
attrs
,
False
),
(
1e-5
,
1e-5
)
attrs
,
False
),
(
1e-5
,
1e-5
)
# for dynamic_shape
# for dynamic_shape
generate_dynamic_shape
(
attrs
)
generate_dynamic_shape
(
attrs
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Float32
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
...
@@ -190,6 +189,16 @@ class TrtConvertDepthwiseConv2dTest(TrtLayerAutoScanTest):
...
@@ -190,6 +189,16 @@ class TrtConvertDepthwiseConv2dTest(TrtLayerAutoScanTest):
"When padding_algorithm is 'SAME' or 'VALID', Trt dose not support. In this case, trt build error is caused by scale op."
"When padding_algorithm is 'SAME' or 'VALID', Trt dose not support. In this case, trt build error is caused by scale op."
)
)
def
teller2
(
program_config
,
predictor_config
):
if
self
.
trt_param
.
precision
==
paddle_infer
.
PrecisionType
.
Int8
:
return
True
return
False
self
.
add_skip_case
(
teller2
,
SkipReasons
.
TRT_NOT_IMPLEMENTED
,
"When precisionType is int8 without relu op, output is different between Trt and Paddle."
)
def
test
(
self
):
def
test
(
self
):
self
.
add_skip_trt_case
()
self
.
add_skip_trt_case
()
self
.
run_test
()
self
.
run_test
()
...
...
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_depthwise_conv2d_transpose.py
浏览文件 @
9b987b3d
...
@@ -137,7 +137,7 @@ class TrtConvertDepthwiseConv2dTransposeTest(TrtLayerAutoScanTest):
...
@@ -137,7 +137,7 @@ class TrtConvertDepthwiseConv2dTransposeTest(TrtLayerAutoScanTest):
attrs
,
False
),
1e-5
attrs
,
False
),
1e-5
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Half
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-5
,
1e-
5
)
attrs
,
False
),
(
1e-5
,
1e-
3
)
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
self
.
trt_param
.
precision
=
paddle_infer
.
PrecisionType
.
Int8
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
yield
self
.
create_inference_config
(),
generate_trt_nodes_num
(
attrs
,
False
),
(
1e-5
,
1e-5
)
attrs
,
False
),
(
1e-5
,
1e-5
)
...
@@ -178,6 +178,16 @@ class TrtConvertDepthwiseConv2dTransposeTest(TrtLayerAutoScanTest):
...
@@ -178,6 +178,16 @@ class TrtConvertDepthwiseConv2dTransposeTest(TrtLayerAutoScanTest):
"When dilations's element is not equal 1, there are different behaviors between Trt and Paddle."
"When dilations's element is not equal 1, there are different behaviors between Trt and Paddle."
)
)
def
teller3
(
program_config
,
predictor_config
):
if
self
.
trt_param
.
precision
==
paddle_infer
.
PrecisionType
.
Int8
:
return
True
return
False
self
.
add_skip_case
(
teller3
,
SkipReasons
.
TRT_NOT_IMPLEMENTED
,
"When precisionType is int8 without relu op, output is different between Trt and Paddle."
)
def
test
(
self
):
def
test
(
self
):
self
.
add_skip_trt_case
()
self
.
add_skip_trt_case
()
self
.
run_test
()
self
.
run_test
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录