Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
e021ad67
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e021ad67
编写于
2月 13, 2018
作者:
Y
Yang Yang
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'upstream/develop' into backward_on_parallel_do
上级
7129fa3c
87f4311a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
8 addition
and
6 deletion
+8
-6
cmake/external/mkldnn.cmake
cmake/external/mkldnn.cmake
+1
-0
paddle/fluid/framework/tensor.h
paddle/fluid/framework/tensor.h
+0
-2
paddle/fluid/operators/detection_map_op.h
paddle/fluid/operators/detection_map_op.h
+4
-4
python/paddle/v2/fluid/data_feeder.py
python/paddle/v2/fluid/data_feeder.py
+3
-0
未找到文件。
cmake/external/mkldnn.cmake
浏览文件 @
e021ad67
...
@@ -56,6 +56,7 @@ ExternalProject_Add(
...
@@ -56,6 +56,7 @@ ExternalProject_Add(
PREFIX
${
MKLDNN_SOURCES_DIR
}
PREFIX
${
MKLDNN_SOURCES_DIR
}
UPDATE_COMMAND
""
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=
${
MKLDNN_INSTALL_DIR
}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=
${
MKLDNN_INSTALL_DIR
}
CMAKE_ARGS -DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
CMAKE_ARGS -DMKLROOT=
${
MKLML_ROOT
}
CMAKE_ARGS -DMKLROOT=
${
MKLML_ROOT
}
CMAKE_ARGS -DCMAKE_C_FLAGS=
${
MKLDNN_CFLAG
}
CMAKE_ARGS -DCMAKE_C_FLAGS=
${
MKLDNN_CFLAG
}
CMAKE_ARGS -DCMAKE_CXX_FLAGS=
${
MKLDNN_CXXFLAG
}
CMAKE_ARGS -DCMAKE_CXX_FLAGS=
${
MKLDNN_CXXFLAG
}
...
...
paddle/fluid/framework/tensor.h
浏览文件 @
e021ad67
...
@@ -130,8 +130,6 @@ class Tensor {
...
@@ -130,8 +130,6 @@ class Tensor {
inline
void
set_layout
(
const
DataLayout
layout
)
{
layout_
=
layout
;
}
inline
void
set_layout
(
const
DataLayout
layout
)
{
layout_
=
layout
;
}
private:
private:
friend
class
LoDTensor
;
/**
/**
* @note Placeholder hides type T, so it doesn't appear as a template
* @note Placeholder hides type T, so it doesn't appear as a template
* parameter of Variable.
* parameter of Variable.
...
...
paddle/fluid/operators/detection_map_op.h
浏览文件 @
e021ad67
...
@@ -151,7 +151,7 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
...
@@ -151,7 +151,7 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
for
(
int
n
=
0
;
n
<
batch_size
;
++
n
)
{
for
(
int
n
=
0
;
n
<
batch_size
;
++
n
)
{
std
::
map
<
int
,
std
::
vector
<
Box
>>
boxes
;
std
::
map
<
int
,
std
::
vector
<
Box
>>
boxes
;
for
(
in
t
i
=
label_index
[
n
];
i
<
label_index
[
n
+
1
];
++
i
)
{
for
(
size_
t
i
=
label_index
[
n
];
i
<
label_index
[
n
+
1
];
++
i
)
{
Box
box
(
labels
(
i
,
2
),
labels
(
i
,
3
),
labels
(
i
,
4
),
labels
(
i
,
5
));
Box
box
(
labels
(
i
,
2
),
labels
(
i
,
3
),
labels
(
i
,
4
),
labels
(
i
,
5
));
int
label
=
labels
(
i
,
0
);
int
label
=
labels
(
i
,
0
);
auto
is_difficult
=
labels
(
i
,
1
);
auto
is_difficult
=
labels
(
i
,
1
);
...
@@ -167,7 +167,7 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
...
@@ -167,7 +167,7 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
auto
detect_index
=
detect_lod
[
0
];
auto
detect_index
=
detect_lod
[
0
];
for
(
int
n
=
0
;
n
<
batch_size
;
++
n
)
{
for
(
int
n
=
0
;
n
<
batch_size
;
++
n
)
{
std
::
map
<
int
,
std
::
vector
<
std
::
pair
<
T
,
Box
>>>
boxes
;
std
::
map
<
int
,
std
::
vector
<
std
::
pair
<
T
,
Box
>>>
boxes
;
for
(
in
t
i
=
detect_index
[
n
];
i
<
detect_index
[
n
+
1
];
++
i
)
{
for
(
size_
t
i
=
detect_index
[
n
];
i
<
detect_index
[
n
+
1
];
++
i
)
{
Box
box
(
detect
(
i
,
2
),
detect
(
i
,
3
),
detect
(
i
,
4
),
detect
(
i
,
5
));
Box
box
(
detect
(
i
,
2
),
detect
(
i
,
3
),
detect
(
i
,
4
),
detect
(
i
,
5
));
int
label
=
detect
(
i
,
0
);
int
label
=
detect
(
i
,
0
);
auto
score
=
detect
(
i
,
1
);
auto
score
=
detect
(
i
,
1
);
...
@@ -269,8 +269,8 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
...
@@ -269,8 +269,8 @@ class DetectionMAPOpKernel : public framework::OpKernel<T> {
std
::
map
<
int
,
std
::
vector
<
std
::
pair
<
T
,
int
>>>&
pos
)
{
std
::
map
<
int
,
std
::
vector
<
std
::
pair
<
T
,
int
>>>&
pos
)
{
const
T
*
pos_data
=
pos_tensor
.
data
<
T
>
();
const
T
*
pos_data
=
pos_tensor
.
data
<
T
>
();
auto
pos_data_lod
=
pos_tensor
.
lod
();
auto
pos_data_lod
=
pos_tensor
.
lod
();
for
(
in
t
i
=
0
;
i
<
pos_data_lod
.
size
();
++
i
)
{
for
(
size_
t
i
=
0
;
i
<
pos_data_lod
.
size
();
++
i
)
{
for
(
in
t
j
=
pos_data_lod
[
0
][
i
];
j
<
pos_data_lod
[
0
][
i
+
1
];
++
j
)
{
for
(
size_
t
j
=
pos_data_lod
[
0
][
i
];
j
<
pos_data_lod
[
0
][
i
+
1
];
++
j
)
{
T
score
=
pos_data
[
j
*
2
];
T
score
=
pos_data
[
j
*
2
];
int
flag
=
1
;
int
flag
=
1
;
if
(
pos_data
[
j
*
2
+
1
]
<
kEPS
)
flag
=
0
;
if
(
pos_data
[
j
*
2
+
1
]
<
kEPS
)
flag
=
0
;
...
...
python/paddle/v2/fluid/data_feeder.py
浏览文件 @
e021ad67
...
@@ -107,6 +107,9 @@ class DataFeeder(object):
...
@@ -107,6 +107,9 @@ class DataFeeder(object):
dtype
=
dtype
))
dtype
=
dtype
))
for
each_sample
in
iterable
:
for
each_sample
in
iterable
:
assert
len
(
each_sample
)
==
len
(
converter
),
(
"The number of fields in data (%s) does not match "
+
"len(feed_list) (%s)"
)
%
(
len
(
each_sample
),
len
(
converter
))
for
each_converter
,
each_slot
in
six
.
zip
(
converter
,
each_sample
):
for
each_converter
,
each_slot
in
six
.
zip
(
converter
,
each_sample
):
each_converter
.
feed
(
each_slot
)
each_converter
.
feed
(
each_slot
)
ret_dict
=
{}
ret_dict
=
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录