Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
e55af459
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看板
提交
e55af459
编写于
12月 10, 2018
作者:
H
hjchen2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix pooling3x3 bug
上级
8ab6a810
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
9 deletion
+11
-9
src/operators/math/pooling3x3.cpp
src/operators/math/pooling3x3.cpp
+11
-9
未找到文件。
src/operators/math/pooling3x3.cpp
浏览文件 @
e55af459
...
...
@@ -197,6 +197,8 @@ inline void Pooling3x3ValidCol(const float *input, const int h_output,
vst1q_lane_f32
(
output3
,
y0
.
val
[
0
],
3
);
vst1q_lane_f32
(
output4
,
y0
.
val
[
1
],
0
);
vst1q_lane_f32
(
output5
,
y0
.
val
[
1
],
1
);
input_offset
+=
6
*
Stride
*
input_w
;
output_offset
+=
6
*
output_w
;
}
#endif
for
(
int
h
=
remain_start
;
h
<
h_output_end
;
++
h
)
{
...
...
@@ -222,7 +224,7 @@ inline void Pooling3x3NormalRow(const float *input, const int h_output,
const
int
h_end
=
h_in_end
<
input_h
?
h_in_end
:
input_h
;
int
valid_w_start
=
(
padding_w
+
Stride
-
1
)
/
Stride
;
int
valid_w_end
=
output_w
-
valid_w_start
;
int
valid_w_end
=
(
input_w
-
3
)
/
Stride
+
1
+
valid_w_start
;
float
*
output_ptr
=
output
+
h_output
*
output_w
;
// border left
...
...
@@ -279,11 +281,11 @@ struct Pooling3x3<P, 1> {
int
image_size
=
input_h
*
input_w
;
int
out_image_size
=
output_h
*
output_w
;
int
valid_h_start
=
padding_h
;
int
valid_h
_end
=
output_h
-
valid_h_start
;
int
valid_h
=
valid_h_end
-
valid_h_start
;
int
valid_h
=
input_h
-
2
;
int
valid_h
_end
=
valid_h_start
+
valid_h
;
int
valid_w_start
=
padding_w
;
int
valid_w
_end
=
output_w
-
valid_w_start
;
int
valid_w
=
valid_w_end
-
valid_w_start
;
int
valid_w
=
input_w
-
2
;
int
valid_w
_end
=
valid_w_start
+
valid_w
;
float
avg
=
1.
f
/
9
;
#pragma omp parallel for
...
...
@@ -662,11 +664,11 @@ struct Pooling3x3<P, 2> {
int
image_size
=
input_h
*
input_w
;
int
out_image_size
=
output_h
*
output_w
;
int
valid_h_start
=
(
padding_h
+
1
)
/
2
;
int
valid_h
_end
=
output_h
-
valid_h_start
;
int
valid_h
=
valid_h_end
-
valid_h_start
;
int
valid_h
=
(
input_h
-
3
)
/
2
+
1
;
int
valid_h
_end
=
valid_h_start
+
valid_h
;
int
valid_w_start
=
(
padding_w
+
1
)
/
2
;
int
valid_w
_end
=
output_w
-
valid_w_start
;
int
valid_w
=
valid_w_end
-
valid_w_start
;
int
valid_w
=
(
input_w
-
3
)
/
2
+
1
;
int
valid_w
_end
=
valid_w_start
+
valid_w
;
float
avg
=
1.
f
/
9
;
#pragma omp parallel for
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录