Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
af3fc301
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
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看板
提交
af3fc301
编写于
8月 13, 2020
作者:
C
chenjiaoAngel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix conv_dw_5x5 loop
上级
eaa48c6a
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
3879 deletion
+12
-3879
lite/backends/arm/math/conv5x5s1_depthwise_fp32.cc
lite/backends/arm/math/conv5x5s1_depthwise_fp32.cc
+12
-12
lite/backends/arm/math/conv5x5s1_depthwise_fp32_new.cc
lite/backends/arm/math/conv5x5s1_depthwise_fp32_new.cc
+0
-3867
未找到文件。
lite/backends/arm/math/conv5x5s1_depthwise_fp32.cc
浏览文件 @
af3fc301
...
@@ -1199,7 +1199,7 @@ inline void compute_all_padding_pre(float* dout,
...
@@ -1199,7 +1199,7 @@ inline void compute_all_padding_pre(float* dout,
}
}
// right
// right
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
...
@@ -1335,7 +1335,7 @@ inline void compute_all_padding_mid(float* dout,
...
@@ -1335,7 +1335,7 @@ inline void compute_all_padding_mid(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -1570,7 +1570,7 @@ inline void compute_all_padding_post(float* dout,
...
@@ -1570,7 +1570,7 @@ inline void compute_all_padding_post(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -1819,7 +1819,7 @@ inline void compute_all_padding_pre_relu(float* dout,
...
@@ -1819,7 +1819,7 @@ inline void compute_all_padding_pre_relu(float* dout,
}
}
// right
// right
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
...
@@ -1928,7 +1928,7 @@ inline void compute_all_padding_mid_relu(float* dout,
...
@@ -1928,7 +1928,7 @@ inline void compute_all_padding_mid_relu(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -2172,7 +2172,7 @@ inline void compute_all_padding_post_relu(float* dout,
...
@@ -2172,7 +2172,7 @@ inline void compute_all_padding_post_relu(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -2433,7 +2433,7 @@ inline void compute_all_padding_pre_relu6(float* dout,
...
@@ -2433,7 +2433,7 @@ inline void compute_all_padding_pre_relu6(float* dout,
}
}
// right
// right
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
...
@@ -2548,7 +2548,7 @@ inline void compute_all_padding_mid_relu6(float* dout,
...
@@ -2548,7 +2548,7 @@ inline void compute_all_padding_mid_relu6(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -2804,7 +2804,7 @@ inline void compute_all_padding_post_relu6(float* dout,
...
@@ -2804,7 +2804,7 @@ inline void compute_all_padding_post_relu6(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -3065,7 +3065,7 @@ inline void compute_all_padding_pre_leakyRelu(float* dout,
...
@@ -3065,7 +3065,7 @@ inline void compute_all_padding_pre_leakyRelu(float* dout,
}
}
// right
// right
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
1
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
4
],
bias
[
0
],
weights
[
4
][
4
-
i
],
4
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
num
-
1
-
k
],
weights
[
3
-
k
],
0.
f
,
weights
[
3
-
k
][
4
-
i
],
4
-
i
);
...
@@ -3180,7 +3180,7 @@ inline void compute_all_padding_mid_leakyRelu(float* dout,
...
@@ -3180,7 +3180,7 @@ inline void compute_all_padding_mid_leakyRelu(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
@@ -3436,7 +3436,7 @@ inline void compute_all_padding_post_leakyRelu(float* dout,
...
@@ -3436,7 +3436,7 @@ inline void compute_all_padding_post_leakyRelu(float* dout,
}
}
// right
// right
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
--
)
{
for
(
int
i
=
0
;
i
<
pad_right_new
;
i
++
)
{
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
float
sum
=
compute_one_data_post
(
din_ptr_arr
[
num
],
weights
[
num
],
bias
[
0
],
weights
[
num
][
3
-
i
],
3
-
i
);
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
for
(
int
k
=
0
;
k
<
num
;
k
++
)
{
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
sum
+=
compute_one_data_post
(
din_ptr_arr
[
tmp
-
k
],
weights
[
tmp
-
k
],
0.
f
,
weights
[
tmp
-
k
][
3
-
i
],
3
-
i
);
...
...
lite/backends/arm/math/conv5x5s1_depthwise_fp32_new.cc
已删除
100644 → 0
浏览文件 @
eaa48c6a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录