提交 fec1d238 authored 作者: James Bergstra's avatar James Bergstra

merge

上级 5d37b0f4
...@@ -344,6 +344,7 @@ Condition ...@@ -344,6 +344,7 @@ Condition
--------- ---------
.. function:: switch(cond, ift, iff) .. function:: switch(cond, ift, iff)
Returns a variable representing a switch between ift (iftrue) and iff (iffalse) Returns a variable representing a switch between ift (iftrue) and iff (iffalse)
based on the condition cond. based on the condition cond.
:Parameter: *cond* - symbolic Tensor (or compatible) :Parameter: *cond* - symbolic Tensor (or compatible)
...@@ -352,6 +353,7 @@ Condition ...@@ -352,6 +353,7 @@ Condition
:Return type: symbolic Tensor :Return type: symbolic Tensor
.. code-block:: python .. code-block:: python
import theano.tensor as T import theano.tensor as T
a,b = T.dmatrices('a','b') a,b = T.dmatrices('a','b')
x,y = T.dmatrices('x','y') x,y = T.dmatrices('x','y')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论