Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
73209b72
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
332
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
73209b72
编写于
3月 18, 2019
作者:
H
Houjiang Chen
提交者:
GitHub
3月 18, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1505 from hjchen2/backup
Optimize general col2im to speed up transpose conv
上级
edd7f241
ba7458fa
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
384 addition
and
166 deletion
+384
-166
src/operators/kernel/arm/convolution/conv_common.cpp
src/operators/kernel/arm/convolution/conv_common.cpp
+3
-4
src/operators/math/im2col.cpp
src/operators/math/im2col.cpp
+362
-162
src/operators/math/im2col.h
src/operators/math/im2col.h
+19
-0
未找到文件。
src/operators/kernel/arm/convolution/conv_common.cpp
浏览文件 @
73209b72
...
...
@@ -56,10 +56,9 @@ void InitBaseConvKernel(ConvParam<CPU> *param) {
param
->
Strides
()[
0
]
==
param
->
Strides
()[
1
]
&&
param
->
Dilations
()[
0
]
==
param
->
Dilations
()[
1
]
&&
param
->
Strides
()[
0
]
==
1
&&
param
->
Dilations
()[
0
]
==
1
#if 0
&& param->Output()->dims()[1] >= 16 &&
param->Input()->dims()[1] >= 16 &&
param->Input()->dims()[2] <= 140 */ /* refered from ncnn */
#if 1
&&
(
param
->
Input
()
->
dims
()[
1
]
>=
4
||
param
->
Output
()
->
dims
()[
1
]
>=
16
)
#endif
)
{
param
->
ExecMode
()
=
ConvParam
<
CPU
>::
EXEC_WINOGRAD3X3_FLOAT
;
...
...
src/operators/math/im2col.cpp
浏览文件 @
73209b72
此差异已折叠。
点击以展开。
src/operators/math/im2col.h
浏览文件 @
73209b72
...
...
@@ -25,6 +25,25 @@ namespace math {
* Col2ImFunctor. */
enum
class
ColFormat
{
kCFO
=
0
,
kOCF
=
1
};
template
<
class
T
>
void
ExtractToImg
(
const
T
*
im_data
,
T
*
col_data
,
const
int
im_height
,
const
int
im_width
,
const
int
col_height
,
const
int
col_width
,
const
int
padding_h
,
const
int
padding_w
,
const
int
stride_h
,
const
int
stride_w
,
const
int
kh
,
const
int
kw
);
template
<
class
T
>
void
ExtendToImg
(
const
T
*
col_data
,
T
*
im_data
,
const
int
im_height
,
const
int
im_width
,
const
int
col_height
,
const
int
col_width
,
const
int
padding_h
,
const
int
padding_w
,
const
int
stride_h
,
const
int
stride_w
,
const
int
kh
,
const
int
kw
);
template
<
class
T
>
void
ExtendToImgV2
(
const
T
*
col_data
,
T
*
im_data
,
const
int
im_height
,
const
int
im_width
,
const
int
col_height
,
const
int
col_width
,
const
int
padding_h
,
const
int
padding_w
,
const
int
stride_h
,
const
int
stride_w
,
const
int
kh
,
const
int
kernel_w
);
/*
* \brief Converts the image data of three dimensions(CHW) into a
* colData of
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录