Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
f99e8295
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看板
提交
f99e8295
编写于
8月 05, 2020
作者:
C
chenjiaoAngel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update conv_dw_3x3s2
上级
86746af8
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
5239 addition
and
7031 deletion
+5239
-7031
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32.cc
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32.cc
+11
-11
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_1.cc
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_1.cc
+0
-3989
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_relu1.cc
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_relu1.cc
+0
-2983
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_new.cc
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_new.cc
+2912
-0
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_relu_new.cc
...backends/arm/math/conv3x3s2p01_depthwise_fp32_relu_new.cc
+2213
-0
lite/backends/arm/math/conv_depthwise.h
lite/backends/arm/math/conv_depthwise.h
+103
-48
未找到文件。
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32.cc
浏览文件 @
f99e8295
...
...
@@ -203,7 +203,7 @@ void conv_depthwise_3x3s1_fp32(const float *din,
w_out
,
ctx
);
}
else
{
conv_depthwise_3x3s1p
0
_bias_s_relu
(
dout
,
conv_depthwise_3x3s1p
1
_bias_s_relu
(
dout
,
din
,
weights
,
bias
,
...
...
@@ -267,7 +267,7 @@ void conv_depthwise_3x3s1_fp32(const float *din,
w_out
,
ctx
);
}
else
{
conv_depthwise_3x3s1p
0
_bias_s_relu6
(
dout
,
conv_depthwise_3x3s1p
1
_bias_s_relu6
(
dout
,
din
,
weights
,
bias
,
...
...
@@ -331,7 +331,7 @@ void conv_depthwise_3x3s1_fp32(const float *din,
w_out
,
ctx
);
}
else
{
conv_depthwise_3x3s1p
0
_bias_s_leakyRelu
(
dout
,
conv_depthwise_3x3s1p
1
_bias_s_leakyRelu
(
dout
,
din
,
weights
,
bias
,
...
...
@@ -2225,7 +2225,7 @@ void conv_depthwise_3x3s1p1_bias_relu6(float *dout,
float32x4_t
vzero
=
vdupq_n_f32
(
0.
f
);
#ifdef __aarch64__
float32x4_t
vsix
=
v
dupq_n
_f32
(
six
);
float32x4_t
vsix
=
v
ld1q
_f32
(
six
);
#endif
for
(
int
n
=
0
;
n
<
num
;
++
n
)
{
const
float
*
din_batch
=
din
+
n
*
ch_in
*
size_in_channel
;
...
...
@@ -2523,7 +2523,7 @@ void conv_depthwise_3x3s1p1_bias_leakyRelu(float *dout,
float32x4_t
vzero
=
vdupq_n_f32
(
0.
f
);
#ifdef __aarch64__
float32x4_t
vscale
=
v
dupq_n
_f32
(
scale
);
float32x4_t
vscale
=
v
ld1q
_f32
(
scale
);
#endif
for
(
int
n
=
0
;
n
<
num
;
++
n
)
{
const
float
*
din_batch
=
din
+
n
*
ch_in
*
size_in_channel
;
...
...
@@ -2786,7 +2786,7 @@ void conv_depthwise_3x3s1p1_bias_s_relu6(float *dout,
int
size_in_channel
=
w_in
*
h_in
;
int
size_out_channel
=
w_out
*
h_out
;
#ifdef __aarch64__
float32x4_t
vsix
=
v
dupq_n
_f32
(
six
);
float32x4_t
vsix
=
v
ld1q
_f32
(
six
);
#endif
for
(
int
n
=
0
;
n
<
num
;
++
n
)
{
const
float
*
din_batch
=
din
+
n
*
ch_in
*
size_in_channel
;
...
...
@@ -2947,7 +2947,7 @@ void conv_depthwise_3x3s1p1_bias_s_leakyRelu(float *dout,
int
size_in_channel
=
w_in
*
h_in
;
int
size_out_channel
=
w_out
*
h_out
;
#ifdef __aarch64__
float32x4_t
vscale
=
v
dupq_n
_f32
(
scale
);
float32x4_t
vscale
=
v
ld1q
_f32
(
scale
);
#endif
for
(
int
n
=
0
;
n
<
num
;
++
n
)
{
const
float
*
din_batch
=
din
+
n
*
ch_in
*
size_in_channel
;
...
...
@@ -3119,7 +3119,7 @@ void conv_depthwise_3x3s1p0_bias_relu6(float *dout,
const
int
remian_idx
[
4
]
=
{
0
,
1
,
2
,
3
};
#ifdef __aarch64__
float32x4_t
vsix
=
v
dupq_n
_f32
(
six
);
float32x4_t
vsix
=
v
ld1q
_f32
(
six
);
#endif
if
(
remain
==
0
&&
size_pad_right
==
6
)
{
// w_in == w_out and w_out % 4 == 0
...
...
@@ -3402,7 +3402,7 @@ void conv_depthwise_3x3s1p0_bias_s_relu6(float *dout,
vcgeq_s32
(
vld1q_s32
(
right_pad_idx
+
4
),
vdupq_n_s32
(
6
-
w_in
));
#ifdef __aarch64__
float32x4_t
vsix
=
v
dupq_n
_f32
(
six
);
float32x4_t
vsix
=
v
ld1q
_f32
(
six
);
#endif
unsigned
int
vmask
[
8
];
...
...
@@ -3569,7 +3569,7 @@ void conv_depthwise_3x3s1p0_bias_leakyRelu(float *dout,
const
int
remian_idx
[
4
]
=
{
0
,
1
,
2
,
3
};
#ifdef __aarch64__
float32x4_t
vscale
=
v
dupq_n
_f32
(
scale
);
float32x4_t
vscale
=
v
ld1q
_f32
(
scale
);
#endif
if
(
remain
==
0
&&
size_pad_right
==
6
)
{
// w_in == w_out and w_out % 4 == 0
...
...
@@ -3853,7 +3853,7 @@ void conv_depthwise_3x3s1p0_bias_s_leakyRelu(float *dout,
vcgeq_s32
(
vld1q_s32
(
right_pad_idx
+
4
),
vdupq_n_s32
(
6
-
w_in
));
#ifdef __aarch64__
float32x4_t
vscale
=
v
dupq_n
_f32
(
scale
);
float32x4_t
vscale
=
v
ld1q
_f32
(
scale
);
#endif
unsigned
int
vmask
[
8
];
...
...
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_1.cc
已删除
100644 → 0
浏览文件 @
86746af8
此差异已折叠。
点击以展开。
lite/backends/arm/math/conv3x3s1p01_depthwise_fp32_relu1.cc
已删除
100644 → 0
浏览文件 @
86746af8
此差异已折叠。
点击以展开。
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_new.cc
0 → 100644
浏览文件 @
f99e8295
此差异已折叠。
点击以展开。
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_relu_new.cc
0 → 100644
浏览文件 @
f99e8295
此差异已折叠。
点击以展开。
lite/backends/arm/math/conv_depthwise.h
浏览文件 @
f99e8295
...
...
@@ -324,61 +324,116 @@ void conv_depthwise_3x3s2p1_bias_s_relu(float* dout,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s1p0_bias_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s1p0_bias_s_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s1p1_bias_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s1p1_bias_s_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s2p0_bias_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s2p0_bias_s_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s2p1_bias_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
void
conv_depthwise_3x3s2p1_bias_s_no_relu
(
float
*
dout
,
const
float
*
din
,
const
float
*
weights
,
const
float
*
bias
,
bool
flag_bias
,
bool
flag_relu
,
const
int
num
,
const
int
ch_in
,
const
int
h_in
,
const
int
w_in
,
const
int
h_out
,
const
int
w_out
,
ARMContext
*
ctx
);
}
// namespace math
}
// namespace arm
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录