Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
dcb4ab25
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看板
提交
dcb4ab25
编写于
12月 30, 2019
作者:
L
Liu Yiqun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the compiling error because of the modification of DDimLite's function.
test=develop
上级
97df75b2
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
7 deletion
+8
-7
lite/kernels/arm/scale_compute_test.cc
lite/kernels/arm/scale_compute_test.cc
+1
-1
lite/kernels/arm/slice_compute.cc
lite/kernels/arm/slice_compute.cc
+2
-1
lite/kernels/arm/softmax_compute_test.cc
lite/kernels/arm/softmax_compute_test.cc
+1
-1
lite/kernels/cuda/softmax_compute_test.cc
lite/kernels/cuda/softmax_compute_test.cc
+1
-1
lite/kernels/cuda/transpose_compute.cu
lite/kernels/cuda/transpose_compute.cu
+1
-1
lite/kernels/fpga/activation_compute_test.cc
lite/kernels/fpga/activation_compute_test.cc
+1
-1
lite/kernels/fpga/softmax_compute_test.cc
lite/kernels/fpga/softmax_compute_test.cc
+1
-1
未找到文件。
lite/kernels/arm/scale_compute_test.cc
浏览文件 @
dcb4ab25
...
...
@@ -28,7 +28,7 @@ void scale_compute_ref(const operators::ScaleParam& param) {
dtype
*
output_data
=
param
.
output
->
mutable_data
<
dtype
>
();
DDim
x_dims
=
param
.
x
->
dims
();
DDim
output_dims
=
param
.
output
->
dims
();
ASSERT_EQ
(
x_dims
.
data
(),
output_dims
.
data
()
);
ASSERT_EQ
(
x_dims
,
output_dims
);
bool
bias_after_scale
=
param
.
bias_after_scale
;
float
scale
=
param
.
scale
;
float
bias
=
param
.
bias
;
...
...
lite/kernels/arm/slice_compute.cc
浏览文件 @
dcb4ab25
...
...
@@ -157,8 +157,9 @@ void SliceCompute<T, PType>::Run() {
auto
new_out_dims
=
out
->
dims
();
const
auto
*
x_data
=
in
->
template
data
<
T
>();
auto
*
o_data
=
out
->
template
mutable_data
<
T
>();
std
::
vector
<
int64_t
>
in_dims_data
=
in_dims
.
Vectorize
();
lite
::
arm
::
math
::
slice
(
x_data
,
in_dims
.
data
()
,
axes
,
starts
,
ends
,
o_data
,
&
ctx
);
x_data
,
in_dims
_data
,
axes
,
starts
,
ends
,
o_data
,
&
ctx
);
}
}
// namespace arm
...
...
lite/kernels/arm/softmax_compute_test.cc
浏览文件 @
dcb4ab25
...
...
@@ -29,7 +29,7 @@ void softmax_compute_ref(const operators::SoftmaxParam& param) {
const
dtype
*
x_data
=
param
.
x
->
mutable_data
<
const
dtype
>
();
dtype
*
output_data
=
param
.
output
->
mutable_data
<
dtype
>
();
DDim
x_dims
=
param
.
x
->
dims
();
ASSERT_EQ
(
x_dims
.
data
(),
param
.
output
->
dims
().
data
());
ASSERT_EQ
(
x_dims
,
param
.
output
->
dims
());
auto
x_rank
=
x_dims
.
size
();
int
axis
=
param
.
axis
;
if
(
axis
<
0
)
{
...
...
lite/kernels/cuda/softmax_compute_test.cc
浏览文件 @
dcb4ab25
...
...
@@ -33,7 +33,7 @@ static void softmax_compute_ref(const operators::SoftmaxParam& param) {
const
dtype
*
x_data
=
param
.
x
->
mutable_data
<
const
dtype
>
();
dtype
*
output_data
=
param
.
output
->
mutable_data
<
dtype
>
();
DDim
x_dims
=
param
.
x
->
dims
();
ASSERT_EQ
(
x_dims
.
data
(),
param
.
output
->
dims
().
data
());
ASSERT_EQ
(
x_dims
,
param
.
output
->
dims
());
auto
x_rank
=
x_dims
.
size
();
int
axis
=
param
.
axis
;
if
(
axis
<
0
)
{
...
...
lite/kernels/cuda/transpose_compute.cu
浏览文件 @
dcb4ab25
...
...
@@ -35,7 +35,7 @@ void TransposeCompute::Run() {
float
*
out
=
Out
->
mutable_data
<
float
>
(
TARGET
(
kCUDA
));
int
ndim
=
X
->
dims
().
size
();
std
::
vector
<
int64_t
>
dims
=
X
->
dims
().
data
();
std
::
vector
<
int64_t
>
dims
=
X
->
dims
().
Vectorize
();
// NCHW -> NHWC
if
(
axes
.
size
()
==
4
&&
axes
[
0
]
==
0
&&
axes
[
1
]
==
2
&&
axes
[
2
]
==
3
&&
...
...
lite/kernels/fpga/activation_compute_test.cc
浏览文件 @
dcb4ab25
...
...
@@ -30,7 +30,7 @@ void activation_compute_ref(const operators::ActivationParam& param) {
auto
output_data
=
param
.
Out
->
mutable_data
<
dtype
>
();
DDim
x_dims
=
param
.
X
->
dims
();
DDim
output_dims
=
param
.
Out
->
dims
();
ASSERT_EQ
(
x_dims
.
data
(),
output_dims
.
data
()
);
ASSERT_EQ
(
x_dims
,
output_dims
);
for
(
int
i
=
0
;
i
<
output_dims
.
production
();
i
++
)
{
output_data
[
i
]
=
std
::
max
(
0.
f
,
x_data
[
i
]);
}
...
...
lite/kernels/fpga/softmax_compute_test.cc
浏览文件 @
dcb4ab25
...
...
@@ -29,7 +29,7 @@ void softmax_compute_ref(const operators::SoftmaxParam& param) {
const
dtype
*
x_data
=
param
.
x
->
mutable_data
<
const
dtype
>
();
dtype
*
output_data
=
param
.
output
->
mutable_data
<
dtype
>
();
DDim
x_dims
=
param
.
x
->
dims
();
ASSERT_EQ
(
x_dims
.
data
(),
param
.
output
->
dims
().
data
());
ASSERT_EQ
(
x_dims
,
param
.
output
->
dims
());
auto
x_rank
=
x_dims
.
size
();
int
axis
=
param
.
axis
;
if
(
axis
<
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录