Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
ba6c936f
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看板
提交
ba6c936f
编写于
9月 23, 2020
作者:
Z
zhangwen31
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[arm][kernel]fix: remove unused kernel to reduce build size for CI. test=develop
上级
9ee77a23
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
83 deletion
+0
-83
lite/backends/arm/math/elementwise.cc
lite/backends/arm/math/elementwise.cc
+0
-42
lite/kernels/arm/elementwise_compute.cc
lite/kernels/arm/elementwise_compute.cc
+0
-41
未找到文件。
lite/backends/arm/math/elementwise.cc
浏览文件 @
ba6c936f
...
...
@@ -59,15 +59,6 @@ void elementwise_add<int32_t>(const int32_t* dinx,
naive_elementwise_op
<
int32_t
>
(
dinx
,
diny
,
dout
,
num
,
naive_add
<
int32_t
>
);
}
// todo: use arm intrinsics
template
<
>
void
elementwise_add
<
int64_t
>
(
const
int64_t
*
dinx
,
const
int64_t
*
diny
,
int64_t
*
dout
,
int
num
)
{
naive_elementwise_op
<
int64_t
>
(
dinx
,
diny
,
dout
,
num
,
naive_add
<
int64_t
>
);
}
template
<
>
void
elementwise_add
<
float
>
(
const
float
*
dinx
,
const
float
*
diny
,
...
...
@@ -261,18 +252,6 @@ void elementwise_add_broadcast<int32_t>(const int32_t* dinx,
dinx
,
diny
,
dout
,
batch
,
channels
,
num
,
naive_add
<
int32_t
>
);
}
// todo: use arm intrinsics
template
<
>
void
elementwise_add_broadcast
<
int64_t
>
(
const
int64_t
*
dinx
,
const
int64_t
*
diny
,
int64_t
*
dout
,
int
batch
,
int
channels
,
int
num
)
{
naive_elementwise_op_broadcast
<
int64_t
>
(
dinx
,
diny
,
dout
,
batch
,
channels
,
num
,
naive_add
<
int64_t
>
);
}
template
<
>
void
elementwise_add_broadcast
<
float
>
(
const
float
*
dinx
,
const
float
*
diny
,
...
...
@@ -494,15 +473,6 @@ void elementwise_sub<int32_t>(const int32_t* dinx,
naive_elementwise_op
<
int32_t
>
(
dinx
,
diny
,
dout
,
num
,
naive_sub
<
int32_t
>
);
}
// todo: use arm intrinsics
template
<
>
void
elementwise_sub
<
int64_t
>
(
const
int64_t
*
dinx
,
const
int64_t
*
diny
,
int64_t
*
dout
,
int
num
)
{
naive_elementwise_op
<
int64_t
>
(
dinx
,
diny
,
dout
,
num
,
naive_sub
<
int64_t
>
);
}
template
<
>
void
elementwise_sub
<
float
>
(
const
float
*
dinx
,
const
float
*
diny
,
...
...
@@ -615,18 +585,6 @@ void elementwise_sub_broadcast<int32_t>(const int32_t* dinx,
dinx
,
diny
,
dout
,
batch
,
channels
,
num
,
naive_sub
<
int32_t
>
);
}
// todo: use arm intrinsics
template
<
>
void
elementwise_sub_broadcast
<
int64_t
>
(
const
int64_t
*
dinx
,
const
int64_t
*
diny
,
int64_t
*
dout
,
int
batch
,
int
channels
,
int
num
)
{
naive_elementwise_op_broadcast
<
int64_t
>
(
dinx
,
diny
,
dout
,
batch
,
channels
,
num
,
naive_sub
<
int64_t
>
);
}
template
<
>
void
elementwise_sub_broadcast
<
float
>
(
const
float
*
dinx
,
const
float
*
diny
,
...
...
lite/kernels/arm/elementwise_compute.cc
浏览文件 @
ba6c936f
...
...
@@ -398,16 +398,6 @@ REGISTER_LITE_KERNEL(
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt32
))})
.
Finalize
();
using
elementwise_add_int64_t
=
paddle
::
lite
::
kernels
::
arm
::
ElementwiseAddCompute
<
int64_t
,
PRECISION
(
kInt64
)
>
;
REGISTER_LITE_KERNEL
(
elementwise_add
,
kARM
,
kInt64
,
kNCHW
,
elementwise_add_int64_t
,
def
)
.
BindInput
(
"X"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindInput
(
"Y"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
Finalize
();
REGISTER_LITE_KERNEL
(
fusion_elementwise_add_activation
,
kARM
,
...
...
@@ -439,16 +429,6 @@ REGISTER_LITE_KERNEL(
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt32
))})
.
Finalize
();
using
elementwise_sub_int64_t
=
paddle
::
lite
::
kernels
::
arm
::
ElementwiseSubCompute
<
int64_t
,
PRECISION
(
kInt64
)
>
;
REGISTER_LITE_KERNEL
(
elementwise_sub
,
kARM
,
kInt64
,
kNCHW
,
elementwise_sub_int64_t
,
def
)
.
BindInput
(
"X"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindInput
(
"Y"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
Finalize
();
REGISTER_LITE_KERNEL
(
fusion_elementwise_sub_activation
,
kARM
,
...
...
@@ -479,16 +459,6 @@ REGISTER_LITE_KERNEL(
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt32
))})
.
Finalize
();
using
elementwise_mul_int64_t
=
paddle
::
lite
::
kernels
::
arm
::
ElementwiseMulCompute
<
int64_t
,
PRECISION
(
kInt64
)
>
;
REGISTER_LITE_KERNEL
(
elementwise_mul
,
kARM
,
kInt64
,
kNCHW
,
elementwise_mul_int64_t
,
def
)
.
BindInput
(
"X"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindInput
(
"Y"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
Finalize
();
using
fusion_elementwise_mul_activation_float_t
=
paddle
::
lite
::
kernels
::
arm
::
ElementwiseMulActivationCompute
<
float
,
PRECISION
(
kFloat
)
>
;
REGISTER_LITE_KERNEL
(
fusion_elementwise_mul_activation
,
...
...
@@ -558,17 +528,6 @@ REGISTER_LITE_KERNEL(
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt32
))})
.
Finalize
();
using
elementwise_div_int64_t
=
paddle
::
lite
::
kernels
::
arm
::
ElementwiseDivCompute
<
int64_t
,
PRECISION
(
kInt64
)
>
;
REGISTER_LITE_KERNEL
(
elementwise_div
,
kARM
,
kInt64
,
kNCHW
,
elementwise_div_int64_t
,
def
)
.
BindInput
(
"X"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindInput
(
"Y"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
BindOutput
(
"Out"
,
{
LiteType
::
GetTensorTy
(
TARGET
(
kARM
),
PRECISION
(
kInt64
))})
.
Finalize
();
REGISTER_LITE_KERNEL
(
fusion_elementwise_div_activation
,
kARM
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录