Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
0d3c50ed
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0d3c50ed
编写于
2月 27, 2018
作者:
T
Travis CI
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deploy to GitHub Pages:
dce0383f
上级
ffefbac2
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
32 addition
and
34 deletion
+32
-34
develop/api_doc/fluid/io.html
develop/api_doc/fluid/io.html
+31
-33
develop/api_doc/searchindex.js
develop/api_doc/searchindex.js
+1
-1
未找到文件。
develop/api_doc/fluid/io.html
浏览文件 @
0d3c50ed
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
<h2>
save_vars
<a
class=
"headerlink"
href=
"#save-vars"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
save_vars
<a
class=
"headerlink"
href=
"#save-vars"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_vars
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
vars=None
</em>
,
<em>
predicate=None
</em>
,
<em>
save_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_vars
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
vars=None
</em>
,
<em>
predicate=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Save variables to directory by executor.
</p>
<dd><p>
Save variables to directory by executor.
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
...
@@ -198,8 +198,9 @@
...
@@ -198,8 +198,9 @@
as a bool. If it returns true, the corresponding input variable will be saved.
as a bool. If it returns true, the corresponding input variable will be saved.
:param vars: variables need to be saved. If vars is specified, program
&
predicate
:param vars: variables need to be saved. If vars is specified, program
&
predicate
will be ignored
will be ignored
:param save_file_name: The name of a single file that all vars are saved to.
:param filename: The name of a single file that all vars are saved to.
</p>
If it is None, save variables to separate files.
</p>
<blockquote>
<div>
If it is None, save variables to separate files.
</div></blockquote>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<col
class=
"field-body"
/>
...
@@ -215,7 +216,7 @@ If it is None, save variables to separate files.</p>
...
@@ -215,7 +216,7 @@ If it is None, save variables to separate files.</p>
<h2>
save_params
<a
class=
"headerlink"
href=
"#save-params"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
save_params
<a
class=
"headerlink"
href=
"#save-params"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_params
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
save_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_params
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Save all parameters to directory with executor.
</p>
<dd><p>
Save all parameters to directory with executor.
</p>
</dd></dl>
</dd></dl>
...
@@ -224,7 +225,7 @@ If it is None, save variables to separate files.</p>
...
@@ -224,7 +225,7 @@ If it is None, save variables to separate files.</p>
<h2>
save_persistables
<a
class=
"headerlink"
href=
"#save-persistables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
save_persistables
<a
class=
"headerlink"
href=
"#save-persistables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_persistables
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
save_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_persistables
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Save all persistables to directory with executor.
</p>
<dd><p>
Save all persistables to directory with executor.
</p>
</dd></dl>
</dd></dl>
...
@@ -233,7 +234,7 @@ If it is None, save variables to separate files.</p>
...
@@ -233,7 +234,7 @@ If it is None, save variables to separate files.</p>
<h2>
load_vars
<a
class=
"headerlink"
href=
"#load-vars"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
load_vars
<a
class=
"headerlink"
href=
"#load-vars"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_vars
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
vars=None
</em>
,
<em>
predicate=None
</em>
,
<em>
load_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_vars
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
vars=None
</em>
,
<em>
predicate=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Load variables from directory by executor.
</p>
<dd><p>
Load variables from directory by executor.
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
...
@@ -253,8 +254,9 @@ If it is None, save variables to separate files.</p>
...
@@ -253,8 +254,9 @@ If it is None, save variables to separate files.</p>
as a bool. If it returns true, the corresponding input variable will be loaded.
as a bool. If it returns true, the corresponding input variable will be loaded.
:param vars: variables need to be loaded. If vars is specified, program
&
:param vars: variables need to be loaded. If vars is specified, program
&
predicate will be ignored
predicate will be ignored
:param load_file_name: The name of the single file that all vars are loaded from.
:param filename: The name of the single file that all vars are loaded from.
</p>
If it is None, load variables from separate files.
</p>
<blockquote>
<div>
If it is None, load variables from separate files.
</div></blockquote>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<col
class=
"field-body"
/>
...
@@ -270,7 +272,7 @@ If it is None, load variables from separate files.</p>
...
@@ -270,7 +272,7 @@ If it is None, load variables from separate files.</p>
<h2>
load_params
<a
class=
"headerlink"
href=
"#load-params"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
load_params
<a
class=
"headerlink"
href=
"#load-params"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_params
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
load_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_params
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
load all parameters from directory by executor.
</p>
<dd><p>
load all parameters from directory by executor.
</p>
</dd></dl>
</dd></dl>
...
@@ -279,7 +281,7 @@ If it is None, load variables from separate files.</p>
...
@@ -279,7 +281,7 @@ If it is None, load variables from separate files.</p>
<h2>
load_persistables
<a
class=
"headerlink"
href=
"#load-persistables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
load_persistables
<a
class=
"headerlink"
href=
"#load-persistables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_persistables
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
load_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_persistables
</code><span
class=
"sig-paren"
>
(
</span><em>
executor
</em>
,
<em>
dirname
</em>
,
<em>
main_program=None
</em>
,
<em>
file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
load all persistables from directory by executor.
</p>
<dd><p>
load all persistables from directory by executor.
</p>
</dd></dl>
</dd></dl>
...
@@ -288,32 +290,30 @@ If it is None, load variables from separate files.</p>
...
@@ -288,32 +290,30 @@ If it is None, load variables from separate files.</p>
<h2>
save_inference_model
<a
class=
"headerlink"
href=
"#save-inference-model"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
save_inference_model
<a
class=
"headerlink"
href=
"#save-inference-model"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_inference_model
</code><span
class=
"sig-paren"
>
(
</span><em>
dirname
</em>
,
<em>
feeded_var_names
</em>
,
<em>
target_vars
</em>
,
<em>
executor
</em>
,
<em>
main_program=None
</em>
,
<em>
save_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
save_inference_model
</code><span
class=
"sig-paren"
>
(
</span><em>
dirname
</em>
,
<em>
feeded_var_names
</em>
,
<em>
target_vars
</em>
,
<em>
executor
</em>
,
<em>
main_program=None
</em>
,
<em>
model_filename=None
</em>
,
<em>
params_file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Build a model especially for inference,
<dd><p>
Build a model especially for inference,
and save it to directory by the executor.
</p>
and save it to directory by the executor.
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<col
class=
"field-body"
/>
<tbody
valign=
"top"
>
<tbody
valign=
"top"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Parameters:
</th><td
class=
"field-body"
><ul
class=
"first
last
simple"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Parameters:
</th><td
class=
"field-body"
><ul
class=
"first simple"
>
<li><strong>
dirname
</strong>
–
directory path
</li>
<li><strong>
dirname
</strong>
–
directory path
</li>
<li><strong>
feeded_var_names
</strong>
–
Names of variables that need to be feeded data during inference
</li>
<li><strong>
feeded_var_names
</strong>
–
Names of variables that need to be feeded data during inference
</li>
<li><strong>
target_vars
</strong>
–
Variables from which we can get inference results.
</li>
<li><strong>
target_vars
</strong>
–
Variables from which we can get inference results.
</li>
<li><strong>
executor
</strong>
–
executor that save inference model
</li>
<li><strong>
executor
</strong>
–
executor that save inference model
</li>
<li><strong>
main_program
</strong>
–
original program, which will be pruned to build the inference model.
<li><strong>
main_program
</strong>
–
original program, which will be pruned to build the inference model.
Default default_main_program().
</li>
Default default_main_program().
</li>
<li><strong>
save_file_name
</strong>
–
The name of a single file that all parameters are saved to.
</li>
<li><strong>
model_filename
</strong>
–
The name of file to save inference program.
If not specified, default filename
<cite>
__model__
</cite>
will be used.
</li>
<li><strong>
params_filename
</strong>
–
The name of file to save parameters.
It is used for the case that all parameters are saved in a single binary file.
If not specified, parameters are considered saved in separate files.
</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
</tbody>
<tr
class=
"field-even field"
><th
class=
"field-name"
>
Returns:
</th><td
class=
"field-body"
><p
class=
"first last"
>
None
</p>
</table>
</td>
<p>
If it is None, save parameters to separate files.
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<tbody
valign=
"top"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Returns:
</th><td
class=
"field-body"
>
None
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
@@ -324,30 +324,28 @@ Default default_main_program().</li>
...
@@ -324,30 +324,28 @@ Default default_main_program().</li>
<h2>
load_inference_model
<a
class=
"headerlink"
href=
"#load-inference-model"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
load_inference_model
<a
class=
"headerlink"
href=
"#load-inference-model"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dl
class=
"function"
>
<dt>
<dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_inference_model
</code><span
class=
"sig-paren"
>
(
</span><em>
dirname
</em>
,
<em>
executor
</em>
,
<em>
load_file_
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.fluid.io.
</code><code
class=
"descname"
>
load_inference_model
</code><span
class=
"sig-paren"
>
(
</span><em>
dirname
</em>
,
<em>
executor
</em>
,
<em>
model_filename=None
</em>
,
<em>
params_file
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Load inference model from a directory
</p>
<dd><p>
Load inference model from a directory
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<col
class=
"field-body"
/>
<tbody
valign=
"top"
>
<tbody
valign=
"top"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Parameters:
</th><td
class=
"field-body"
><ul
class=
"first
last
simple"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Parameters:
</th><td
class=
"field-body"
><ul
class=
"first simple"
>
<li><strong>
dirname
</strong>
–
directory path
</li>
<li><strong>
dirname
</strong>
–
directory path
</li>
<li><strong>
executor
</strong>
–
executor that load inference model
</li>
<li><strong>
executor
</strong>
–
executor that load inference model
</li>
<li><strong>
load_file_name
</strong>
–
The name of the single file that all parameters are loaded from.
</li>
<li><strong>
model_filename
</strong>
–
The name of file to load inference program.
If not specified, default filename
<cite>
__model__
</cite>
will be used.
</li>
<li><strong>
params_filename
</strong>
–
The name of file to load parameters.
It is used for the case that all parameters are saved in a single binary file.
If not specified, parameters are considered saved in separate files.
</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
</tbody>
<tr
class=
"field-even field"
><th
class=
"field-name"
>
Returns:
</th><td
class=
"field-body"
><p
class=
"first last"
>
[program, feed_target_names, fetch_targets]
</table>
<p>
If it is None, load parameters from separate files.
</p>
<table
class=
"docutils field-list"
frame=
"void"
rules=
"none"
>
<col
class=
"field-name"
/>
<col
class=
"field-body"
/>
<tbody
valign=
"top"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Returns:
</th><td
class=
"field-body"
>
[program, feed_target_names, fetch_targets]
program: program especially for inference.
program: program especially for inference.
feed_target_names: Names of variables that need to feed data
feed_target_names: Names of variables that need to feed data
fetch_targets: Variables from which we can get inference results.
</td>
fetch_targets: Variables from which we can get inference results.
</p>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
develop/api_doc/searchindex.js
浏览文件 @
0d3c50ed
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录