Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
a30f6aa9
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a30f6aa9
编写于
2月 12, 2017
作者:
Y
Yu Yang
提交者:
GitHub
2月 12, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request
#1307
from reyoung/feature/fix_bug_in_dp2
Temporary disable async load data in PyDP2.
上级
0e6a11a5
67855d3b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
5 deletion
+7
-5
.travis.yml
.travis.yml
+3
-1
paddle/gserver/dataproviders/PyDataProvider2.cpp
paddle/gserver/dataproviders/PyDataProvider2.cpp
+1
-1
python/paddle/trainer_config_helpers/data_sources.py
python/paddle/trainer_config_helpers/data_sources.py
+1
-1
python/paddle/trainer_config_helpers/tests/configs/protostr/test_split_datasource.protostr
...ers/tests/configs/protostr/test_split_datasource.protostr
+2
-2
未找到文件。
.travis.yml
浏览文件 @
a30f6aa9
...
@@ -54,7 +54,9 @@ before_install:
...
@@ -54,7 +54,9 @@ before_install:
fi
fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
-
if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
-
if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
-
pip install numpy wheel protobuf sphinx recommonmark sphinx_rtd_theme virtualenv pre-commit requests==2.9.2 LinkChecker
# Paddle is using protobuf 3.1 currently. Protobuf 3.2 breaks the compatibility. So we specify the python
# protobuf version.
-
pip install numpy wheel 'protobuf==3.1' sphinx recommonmark sphinx_rtd_theme virtualenv pre-commit requests==2.9.2 LinkChecker
script
:
script
:
-
paddle/scripts/travis/main.sh
-
paddle/scripts/travis/main.sh
notifications
:
notifications
:
...
...
paddle/gserver/dataproviders/PyDataProvider2.cpp
浏览文件 @
a30f6aa9
...
@@ -647,7 +647,7 @@ public:
...
@@ -647,7 +647,7 @@ public:
DataBatch
&
gpuBatch
=
*
batch
;
DataBatch
&
gpuBatch
=
*
batch
;
std
::
vector
<
Argument
>&
gpuArguments
=
gpuBatch
.
getStreams
();
std
::
vector
<
Argument
>&
gpuArguments
=
gpuBatch
.
getStreams
();
gpuArguments
.
resize
(
cpuArguments
.
size
());
gpuArguments
.
resize
(
cpuArguments
.
size
());
gpuBatch
.
setSize
(
size
);
gpuBatch
.
setSize
(
b
size
);
for
(
size_t
i
=
0
;
i
<
headers_
.
size
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
headers_
.
size
();
++
i
)
{
gpuArguments
[
i
].
resizeAndCopyFrom
(
gpuArguments
[
i
].
resizeAndCopyFrom
(
cpuArguments
[
i
],
useGpu_
,
HPPL_STREAM_1
);
cpuArguments
[
i
],
useGpu_
,
HPPL_STREAM_1
);
...
...
python/paddle/trainer_config_helpers/data_sources.py
浏览文件 @
a30f6aa9
...
@@ -201,7 +201,7 @@ def define_py_data_sources2(train_list, test_list, module, obj, args=None):
...
@@ -201,7 +201,7 @@ def define_py_data_sources2(train_list, test_list, module, obj, args=None):
data
.
load_data_module
=
load_data_module
data
.
load_data_module
=
load_data_module
data
.
load_data_object
=
load_data_object
data
.
load_data_object
=
load_data_object
data
.
load_data_args
=
load_data_args
data
.
load_data_args
=
load_data_args
data
.
async_load_data
=
Tru
e
data
.
async_load_data
=
Fals
e
return
data
return
data
define_py_data_sources
(
define_py_data_sources
(
...
...
python/paddle/trainer_config_helpers/tests/configs/protostr/test_split_datasource.protostr
浏览文件 @
a30f6aa9
...
@@ -19,7 +19,7 @@ model_config {
...
@@ -19,7 +19,7 @@ model_config {
data_config {
data_config {
type: "py2"
type: "py2"
files: "train.list"
files: "train.list"
async_load_data:
tru
e
async_load_data:
fals
e
for_test: false
for_test: false
load_data_module: "a"
load_data_module: "a"
load_data_object: "c"
load_data_object: "c"
...
@@ -58,7 +58,7 @@ opt_config {
...
@@ -58,7 +58,7 @@ opt_config {
test_data_config {
test_data_config {
type: "py2"
type: "py2"
files: "test.list"
files: "test.list"
async_load_data:
tru
e
async_load_data:
fals
e
for_test: true
for_test: true
load_data_module: "b"
load_data_module: "b"
load_data_object: "d"
load_data_object: "d"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录