Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
87027a2e
P
Paddle
项目概览
机器未来
/
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看板
提交
87027a2e
编写于
3月 29, 2019
作者:
D
dongdaxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix API.spec problem and executor's docstring
test=develop
上级
ade93374
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
27 addition
and
17 deletion
+27
-17
paddle/fluid/API.spec
paddle/fluid/API.spec
+1
-1
python/paddle/fluid/executor.py
python/paddle/fluid/executor.py
+26
-16
未找到文件。
paddle/fluid/API.spec
浏览文件 @
87027a2e
...
@@ -38,7 +38,7 @@ paddle.fluid.DataFeedDesc.desc (ArgSpec(args=['self'], varargs=None, keywords=No
...
@@ -38,7 +38,7 @@ paddle.fluid.DataFeedDesc.desc (ArgSpec(args=['self'], varargs=None, keywords=No
paddle.fluid.DataFeedDesc.set_batch_size (ArgSpec(args=['self', 'batch_size'], varargs=None, keywords=None, defaults=None), ('document', '8d9f44601e0a99dd431f14fd9250cd21'))
paddle.fluid.DataFeedDesc.set_batch_size (ArgSpec(args=['self', 'batch_size'], varargs=None, keywords=None, defaults=None), ('document', '8d9f44601e0a99dd431f14fd9250cd21'))
paddle.fluid.DataFeedDesc.set_dense_slots (ArgSpec(args=['self', 'dense_slots_name'], varargs=None, keywords=None, defaults=None), ('document', 'eb894b464bbcd1b4bc8038398954f766'))
paddle.fluid.DataFeedDesc.set_dense_slots (ArgSpec(args=['self', 'dense_slots_name'], varargs=None, keywords=None, defaults=None), ('document', 'eb894b464bbcd1b4bc8038398954f766'))
paddle.fluid.DataFeedDesc.set_use_slots (ArgSpec(args=['self', 'use_slots_name'], varargs=None, keywords=None, defaults=None), ('document', '415c56600ce4e198c071cad01409a690'))
paddle.fluid.DataFeedDesc.set_use_slots (ArgSpec(args=['self', 'use_slots_name'], varargs=None, keywords=None, defaults=None), ('document', '415c56600ce4e198c071cad01409a690'))
paddle.fluid.AsyncExecutor.__init__ (ArgSpec(args=['self', 'place', 'run_mode'], varargs=None, keywords=None, defaults=(None, '')), ('document', '
06f6f5f72ad386237f1f4e81eff7b7e
9'))
paddle.fluid.AsyncExecutor.__init__ (ArgSpec(args=['self', 'place', 'run_mode'], varargs=None, keywords=None, defaults=(None, '')), ('document', '
4e85874dddcd06c38f5717992d74158
9'))
paddle.fluid.AsyncExecutor.config_distributed_nodes (ArgSpec(args=['self'], varargs=None, keywords=None, defaults=None), ('document', '762980fe0181eb41e3d1081b26ed76b1'))
paddle.fluid.AsyncExecutor.config_distributed_nodes (ArgSpec(args=['self'], varargs=None, keywords=None, defaults=None), ('document', '762980fe0181eb41e3d1081b26ed76b1'))
paddle.fluid.AsyncExecutor.download_data (ArgSpec(args=['self', 'afs_path', 'local_path', 'fs_default_name', 'ugi', 'file_cnt', 'hadoop_home', 'process_num'], varargs=None, keywords=None, defaults=('$HADOOP_HOME', 12)), ('document', '39e3ccddf8ea8db75ea85287c9147c3b'))
paddle.fluid.AsyncExecutor.download_data (ArgSpec(args=['self', 'afs_path', 'local_path', 'fs_default_name', 'ugi', 'file_cnt', 'hadoop_home', 'process_num'], varargs=None, keywords=None, defaults=('$HADOOP_HOME', 12)), ('document', '39e3ccddf8ea8db75ea85287c9147c3b'))
paddle.fluid.AsyncExecutor.get_instance (ArgSpec(args=['self'], varargs=None, keywords=None, defaults=None), ('document', 'f8688f76a2db1243c7097a60c507b182'))
paddle.fluid.AsyncExecutor.get_instance (ArgSpec(args=['self'], varargs=None, keywords=None, defaults=None), ('document', 'f8688f76a2db1243c7097a60c507b182'))
...
...
python/paddle/fluid/executor.py
浏览文件 @
87027a2e
...
@@ -687,7 +687,10 @@ class Executor(object):
...
@@ -687,7 +687,10 @@ class Executor(object):
fetch_info(String List): print information for each variable
fetch_info(String List): print information for each variable
print_period(int): the number of mini-batches for each print
print_period(int): the number of mini-batches for each print
Example:
Returns:
None
Examples:
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
...
@@ -702,6 +705,7 @@ class Executor(object):
...
@@ -702,6 +705,7 @@ class Executor(object):
exe.run(fluid.default_startup_program())
exe.run(fluid.default_startup_program())
exe.infer_from_dataset(program=fluid.default_main_program(),
exe.infer_from_dataset(program=fluid.default_main_program(),
dataset=dataset)
dataset=dataset)
"""
"""
if
self
.
place
==
paddle
.
fluid
.
CUDAPlace
():
if
self
.
place
==
paddle
.
fluid
.
CUDAPlace
():
raise
RuntimeError
(
"infer_from_dataset is verified on CPUPlace"
raise
RuntimeError
(
"infer_from_dataset is verified on CPUPlace"
...
@@ -724,6 +728,7 @@ class Executor(object):
...
@@ -724,6 +728,7 @@ class Executor(object):
self
.
_default_executor
.
run_from_dataset
(
program
.
desc
,
scope
,
self
.
_default_executor
.
run_from_dataset
(
program
.
desc
,
scope
,
dataset
.
dataset
,
dataset
.
dataset
,
trainer
.
_desc
())
trainer
.
_desc
())
return
None
def
train_from_dataset
(
self
,
def
train_from_dataset
(
self
,
program
=
None
,
program
=
None
,
...
@@ -761,9 +766,13 @@ class Executor(object):
...
@@ -761,9 +766,13 @@ class Executor(object):
fetch_info(String List): print information for each variable
fetch_info(String List): print information for each variable
print_period(int): the number of mini-batches for each print
print_period(int): the number of mini-batches for each print
Example:
Returns:
None
Examples:
.. code-block:: python
.. code-block:: python
import paddle.fluid as fluid
import paddle.fluid as fluid
place = fluid.CPUPlace()
place = fluid.CPUPlace()
exe = fluid.Executor(place)
exe = fluid.Executor(place)
...
@@ -799,3 +808,4 @@ class Executor(object):
...
@@ -799,3 +808,4 @@ class Executor(object):
self
.
_default_executor
.
run_from_dataset
(
program
.
desc
,
scope
,
self
.
_default_executor
.
run_from_dataset
(
program
.
desc
,
scope
,
dataset
.
dataset
,
dataset
.
dataset
,
trainer
.
_desc
())
trainer
.
_desc
())
return
None
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录