Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
60d18a8f
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
60d18a8f
编写于
2月 07, 2020
作者:
S
sneaxiy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ut, test=develop
上级
011f0644
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2 addition
and
17 deletion
+2
-17
paddle/fluid/framework/details/build_strategy.cc
paddle/fluid/framework/details/build_strategy.cc
+1
-0
paddle/fluid/operators/reader/lod_tensor_blocking_queue.h
paddle/fluid/operators/reader/lod_tensor_blocking_queue.h
+0
-15
paddle/fluid/pybind/reader_py.cc
paddle/fluid/pybind/reader_py.cc
+0
-1
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+1
-1
未找到文件。
paddle/fluid/framework/details/build_strategy.cc
浏览文件 @
60d18a8f
...
...
@@ -400,6 +400,7 @@ ir::Graph *BuildStrategy::Apply(ir::Graph *graph,
continue
;
}
}
else
if
(
pass
->
Type
()
==
"set_reader_device_count_pass"
)
{
pass
->
Erase
(
kPlaces
);
pass
->
SetNotOwned
<
const
std
::
vector
<
platform
::
Place
>>
(
kPlaces
,
&
places
);
}
VLOG
(
1
)
<<
"Start Apply Pass "
<<
pass
->
Type
();
...
...
paddle/fluid/operators/reader/lod_tensor_blocking_queue.h
浏览文件 @
60d18a8f
...
...
@@ -121,12 +121,6 @@ class OrderedMultiDeviceLoDTensorBlockingQueue {
return
CurQueue
()
->
Push
(
lod_tensor_vec
);
}
bool
Push
(
std
::
vector
<
framework
::
LoDTensor
>&&
lod_tensor_vec
)
{
return
CurQueue
()
->
Push
(
std
::
move
(
lod_tensor_vec
));
}
inline
size_t
Cap
()
const
{
return
capacity_
;
}
inline
size_t
Size
()
const
{
size_t
size
=
0
;
if
(
queues_
)
{
...
...
@@ -137,15 +131,6 @@ class OrderedMultiDeviceLoDTensorBlockingQueue {
return
size
;
}
inline
void
ReOpen
()
{
if
(
queues_
)
{
for
(
auto
&
item
:
*
queues_
)
{
item
->
ReOpen
();
}
}
data_index_
=
0
;
}
inline
void
Close
()
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
init_mutex_
);
...
...
paddle/fluid/pybind/reader_py.cc
浏览文件 @
60d18a8f
...
...
@@ -318,7 +318,6 @@ void BindReader(py::module *module) {
},
py
::
call_guard
<
py
::
gil_scoped_release
>
())
.
def
(
"size"
,
&
reader
::
OrderedMultiDeviceLoDTensorBlockingQueue
::
Size
)
.
def
(
"capacity"
,
&
reader
::
OrderedMultiDeviceLoDTensorBlockingQueue
::
Cap
)
.
def
(
"close"
,
&
reader
::
OrderedMultiDeviceLoDTensorBlockingQueue
::
Close
)
.
def
(
"kill"
,
&
reader
::
OrderedMultiDeviceLoDTensorBlockingQueue
::
Kill
)
.
def
(
"wait_for_inited"
,
...
...
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
60d18a8f
...
...
@@ -354,5 +354,5 @@ set_tests_properties(test_parallel_executor_test_while_train test_parallel_execu
test_parallel_executor_feed_persistable_var
test_parallel_executor_crf_auto_growth test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass
test_data_norm_op test_imperative_using_non_zero_gpu test_fuse_bn_act_pass
test_optimizer_in_control_flow
test_optimizer_in_control_flow
test_dataloader_keep_order
test_buffer_shared_memory_reuse_pass PROPERTIES LABELS
"RUN_TYPE=DIST"
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录