Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
17402a0f
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看板
提交
17402a0f
编写于
5月 25, 2020
作者:
C
chenjiaoAngel
浏览文件
操作
浏览文件
下载
差异文件
fix conflict
上级
0e2695ff
5953939a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
3 addition
and
25 deletion
+3
-25
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32.cc
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32.cc
+1
-0
lite/kernels/arm/pool_compute.cc
lite/kernels/arm/pool_compute.cc
+1
-13
lite/kernels/cuda/pool_compute_test.cc
lite/kernels/cuda/pool_compute_test.cc
+0
-3
lite/kernels/npu/bridges/pool_op.cc
lite/kernels/npu/bridges/pool_op.cc
+1
-3
lite/operators/pool_op.cc
lite/operators/pool_op.cc
+0
-3
lite/operators/pool_op.h
lite/operators/pool_op.h
+0
-3
未找到文件。
lite/backends/arm/math/conv3x3s2p01_depthwise_fp32.cc
浏览文件 @
17402a0f
...
...
@@ -15,6 +15,7 @@
#include <arm_neon.h>
#include "lite/backends/arm/math/conv_block_utils.h"
#include "lite/backends/arm/math/conv_depthwise.h"
#inlcude "lite/backends/arm/math/conv3x3s2p01_depthwise_fp32_relu.cc"
namespace
paddle
{
namespace
lite
{
...
...
lite/kernels/arm/pool_compute.cc
浏览文件 @
17402a0f
...
...
@@ -47,13 +47,6 @@ void PoolCompute::Run() {
bool
use_quantizer
=
param
.
use_quantizer
;
std
::
string
&
data_format
=
param
.
data_format
;
<<<<<<<
HEAD
bool
pads_equal
=
(
paddings
[
0
]
==
paddings
[
1
])
&&
(
paddings
[
2
]
==
paddings
[
3
]);
bool
kps_equal
=
(
ksize
[
0
]
==
ksize
[
1
])
&&
(
strides
[
0
]
==
strides
[
1
])
&&
(
paddings
[
0
]
==
paddings
[
2
]);
=======
bool
pads_less
=
(
paddings
[
0
]
==
paddings
[
2
])
&&
(
paddings
[
1
]
<
2
)
&&
(
paddings
[
3
]
<
2
);
...
...
@@ -65,7 +58,7 @@ void PoolCompute::Run() {
bool
global_pooling
=
(
paddings
[
0
]
==
0
)
&&
(
ksize
[
0
]
==
in_dims
[
2
])
&&
(
ksize
[
1
]
==
in_dims
[
3
])
&&
kps_equal
&&
pads_equal
;
global_pooling
=
param
.
global_pooling
||
global_pooling
;
>>>>>>>
PaddlePaddle
-
develop1
if
(
global_pooling
)
{
for
(
size_t
i
=
0
;
i
<
ksize
.
size
();
++
i
)
{
paddings
[
2
*
i
]
=
0
;
...
...
@@ -96,10 +89,6 @@ void PoolCompute::Run() {
return
;
}
}
else
{
<<<<<<<
HEAD
if
(
ksize
[
0
]
==
2
&&
strides
[
0
]
==
2
&&
paddings
[
0
]
==
0
&&
pads_equal
&&
kps_equal
)
{
=======
if
(
ksize
[
0
]
==
1
&&
strides
[
0
]
==
2
&&
paddings
[
0
]
==
0
&&
kps_equal
)
{
auto
&
ctx
=
this
->
ctx_
->
template
As
<
ARMContext
>();
if
(
pooling_type
==
"max"
)
{
...
...
@@ -118,7 +107,6 @@ void PoolCompute::Run() {
}
}
else
if
(
ksize
[
0
]
==
2
&&
strides
[
0
]
==
2
&&
paddings
[
0
]
==
0
&&
kps_equal
)
{
>>>>>>>
PaddlePaddle
-
develop1
if
(
pooling_type
==
"max"
)
{
lite
::
arm
::
math
::
pooling2x2s2_max
(
din
,
dout
,
...
...
lite/kernels/cuda/pool_compute_test.cc
浏览文件 @
17402a0f
...
...
@@ -27,8 +27,6 @@ namespace cuda {
using
Tensor
=
lite
::
Tensor
;
using
DDim
=
lite
::
DDim
;
<<<<<<<
HEAD
=======
#define IN(n, c, h, w) \
input_data[w + h * input_w + c * input_h * input_w + \
n * input_c * input_h * input_w]
...
...
@@ -94,7 +92,6 @@ void nhwc2nchw_ref(lite::Tensor* input, lite::Tensor* output) {
}
}
>>>>>>>
PaddlePaddle
-
develop1
static
int
PoolOutputSize
(
int
input_size
,
int
filter_size
,
int
pad_left
,
...
...
lite/kernels/npu/bridges/pool_op.cc
浏览文件 @
17402a0f
...
...
@@ -64,7 +64,6 @@ int PoolConverter(void* ctx, OpLite* op, KernelBase* kernel) {
return
FAILED
;
}
<<<<<<<
HEAD
auto
padding
=
op_info
->
GetAttr
<
std
::
vector
<
int
>>
(
"paddings"
);
bool
pads_equal
=
(
padding
[
0
]
==
padding
[
1
])
&&
(
padding
[
2
]
==
padding
[
3
]);
if
(
!
pads_equal
)
{
...
...
@@ -78,7 +77,7 @@ int PoolConverter(void* ctx, OpLite* op, KernelBase* kernel) {
int
npu_ceil_mode
=
0
;
if
(
op_info
->
HasAttr
(
"ceil_mode"
))
{
npu_ceil_mode
=
op_info
->
GetAttr
<
bool
>
(
"ceil_mode"
)
?
1
:
0
;
=======
// pad mode
int
pad_mode
=
0
;
std
::
string
padding_algorithm
(
""
);
...
...
@@ -89,7 +88,6 @@ int PoolConverter(void* ctx, OpLite* op, KernelBase* kernel) {
pad_mode
=
6
;
}
else
if
(
padding_algorithm
==
"VALID"
)
{
pad_mode
=
5
;
>>>>>>>
PaddlePaddle
-
develop1
}
// paddings and strides
...
...
lite/operators/pool_op.cc
浏览文件 @
17402a0f
...
...
@@ -41,7 +41,6 @@ bool PoolOpLite::CheckShape() const {
return
true
;
}
<<<<<<<
HEAD
inline
void
UpdatePadding
(
std
::
vector
<
int
>*
paddings
,
const
bool
global_pooling
,
const
bool
adaptive
,
...
...
@@ -75,8 +74,6 @@ inline void UpdatePadding(std::vector<int>* paddings,
}
}
=======
>>>>>>>
PaddlePaddle
-
develop1
int
PoolOutputSize
(
int
input_size
,
int
filter_size
,
int
pad_left
,
...
...
lite/operators/pool_op.h
浏览文件 @
17402a0f
...
...
@@ -14,10 +14,7 @@
#pragma once
<<<<<<<
HEAD
=======
#include <algorithm>
>>>>>>>
PaddlePaddle
-
develop1
#include <memory>
#include <string>
#include <vector>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录