Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a9b8c9b2
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看板
提交
a9b8c9b2
编写于
2月 07, 2018
作者:
T
Travis CI
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deploy to GitHub Pages:
20c4a4cb
上级
d451b098
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
15 addition
and
14 deletion
+15
-14
develop/api_doc/searchindex.js
develop/api_doc/searchindex.js
+1
-1
develop/api_doc/v2/fluid/layers.html
develop/api_doc/v2/fluid/layers.html
+1
-1
develop/doc/_sources/design/switch.md.txt
develop/doc/_sources/design/switch.md.txt
+1
-2
develop/doc/api/v2/fluid/layers.html
develop/doc/api/v2/fluid/layers.html
+1
-1
develop/doc/design/switch.html
develop/doc/design/switch.html
+1
-2
develop/doc/operators.json
develop/doc/operators.json
+5
-0
develop/doc/searchindex.js
develop/doc/searchindex.js
+1
-1
develop/doc_cn/_sources/design/switch.md.txt
develop/doc_cn/_sources/design/switch.md.txt
+1
-2
develop/doc_cn/api/v2/fluid/layers.html
develop/doc_cn/api/v2/fluid/layers.html
+1
-1
develop/doc_cn/design/switch.html
develop/doc_cn/design/switch.html
+1
-2
develop/doc_cn/searchindex.js
develop/doc_cn/searchindex.js
+1
-1
未找到文件。
develop/api_doc/searchindex.js
浏览文件 @
a9b8c9b2
此差异已折叠。
点击以展开。
develop/api_doc/v2/fluid/layers.html
浏览文件 @
a9b8c9b2
...
...
@@ -769,7 +769,7 @@ to compute the length.</td>
<h3>
ConditionalBlock
<a
class=
"headerlink"
href=
"#conditionalblock"
title=
"Permalink to this headline"
>
¶
</a></h3>
<dl
class=
"class"
>
<dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
is_scalar_condition=False
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd></dd></dl>
</div>
...
...
develop/doc/_sources/design/switch.md.txt
浏览文件 @
a9b8c9b2
...
...
@@ -10,8 +10,7 @@ The following example shows the usage of `fluid.switch`.
a = fluid.Var(10)
b = fluid.Var(0)
switch = fluid.switch()
with switch.block():
with switch() as switch:
with switch.case(fluid.less_equal(a, 10)):
fluid.print("Case 1")
with switch.case(fluid.larger(a, 0)):
...
...
develop/doc/api/v2/fluid/layers.html
浏览文件 @
a9b8c9b2
...
...
@@ -807,7 +807,7 @@ to compute the length.</td>
<h3>
ConditionalBlock
<a
class=
"headerlink"
href=
"#conditionalblock"
title=
"Permalink to this headline"
>
¶
</a></h3>
<dl
class=
"class"
>
<dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
is_scalar_condition=False
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd></dd></dl>
</div>
...
...
develop/doc/design/switch.html
浏览文件 @
a9b8c9b2
...
...
@@ -212,8 +212,7 @@
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
a
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
Var
</span><span
class=
"p"
>
(
</span><span
class=
"mi"
>
10
</span><span
class=
"p"
>
)
</span>
<span
class=
"n"
>
b
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
Var
</span><span
class=
"p"
>
(
</span><span
class=
"mi"
>
0
</span><span
class=
"p"
>
)
</span>
<span
class=
"n"
>
switch
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
switch
</span><span
class=
"p"
>
()
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
block
</span><span
class=
"p"
>
():
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"p"
>
()
</span>
<span
class=
"k"
>
as
</span>
<span
class=
"n"
>
switch
</span><span
class=
"p"
>
:
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
case
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
less_equal
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"p"
>
,
</span>
<span
class=
"mi"
>
10
</span><span
class=
"p"
>
)):
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"k"
>
print
</span><span
class=
"p"
>
(
</span><span
class=
"s2"
>
"
Case 1
"
</span><span
class=
"p"
>
)
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
case
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
larger
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"p"
>
,
</span>
<span
class=
"mi"
>
0
</span><span
class=
"p"
>
)):
</span>
...
...
develop/doc/operators.json
浏览文件 @
a9b8c9b2
...
...
@@ -4288,6 +4288,11 @@
"type"
:
"block id"
,
"comment"
:
"The step block of conditional block operator"
,
"generated"
:
0
},
{
"name"
:
"is_scalar_condition"
,
"type"
:
"bool"
,
"comment"
:
"the input X is used as scalar condition"
,
"generated"
:
0
}
]
},{
"type"
:
"rmsprop"
,
...
...
develop/doc/searchindex.js
浏览文件 @
a9b8c9b2
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
develop/doc_cn/_sources/design/switch.md.txt
浏览文件 @
a9b8c9b2
...
...
@@ -10,8 +10,7 @@ The following example shows the usage of `fluid.switch`.
a = fluid.Var(10)
b = fluid.Var(0)
switch = fluid.switch()
with switch.block():
with switch() as switch:
with switch.case(fluid.less_equal(a, 10)):
fluid.print("Case 1")
with switch.case(fluid.larger(a, 0)):
...
...
develop/doc_cn/api/v2/fluid/layers.html
浏览文件 @
a9b8c9b2
...
...
@@ -826,7 +826,7 @@ to compute the length.</td>
<h3>
ConditionalBlock
<a
class=
"headerlink"
href=
"#conditionalblock"
title=
"永久链接至标题"
>
¶
</a></h3>
<dl
class=
"class"
>
<dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.fluid.layers.
</code><code
class=
"descname"
>
ConditionalBlock
</code><span
class=
"sig-paren"
>
(
</span><em>
inputs
</em>
,
<em>
is_scalar_condition=False
</em>
,
<em>
name=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd></dd></dl>
</div>
...
...
develop/doc_cn/design/switch.html
浏览文件 @
a9b8c9b2
...
...
@@ -231,8 +231,7 @@
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
a
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
Var
</span><span
class=
"p"
>
(
</span><span
class=
"mi"
>
10
</span><span
class=
"p"
>
)
</span>
<span
class=
"n"
>
b
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
Var
</span><span
class=
"p"
>
(
</span><span
class=
"mi"
>
0
</span><span
class=
"p"
>
)
</span>
<span
class=
"n"
>
switch
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
switch
</span><span
class=
"p"
>
()
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
block
</span><span
class=
"p"
>
():
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"p"
>
()
</span>
<span
class=
"k"
>
as
</span>
<span
class=
"n"
>
switch
</span><span
class=
"p"
>
:
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
case
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
less_equal
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"p"
>
,
</span>
<span
class=
"mi"
>
10
</span><span
class=
"p"
>
)):
</span>
<span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"k"
>
print
</span><span
class=
"p"
>
(
</span><span
class=
"s2"
>
"
Case 1
"
</span><span
class=
"p"
>
)
</span>
<span
class=
"k"
>
with
</span>
<span
class=
"n"
>
switch
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
case
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
fluid
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
larger
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"p"
>
,
</span>
<span
class=
"mi"
>
0
</span><span
class=
"p"
>
)):
</span>
...
...
develop/doc_cn/searchindex.js
浏览文件 @
a9b8c9b2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录