提交 86d1f68b authored 作者: Frederic Bastien's avatar Frederic Bastien

tel in the doc that tensor.switch is equivalent of numpy.where.

上级 af6a20e9
......@@ -877,7 +877,8 @@ Condition
.. function:: switch(cond, ift, iff)
Returns a variable representing a switch between ift (iftrue) and iff (iffalse)
based on the condition cond.
based on the condition cond. This is the theano equivalent of numpy.where.
:Parameter: *cond* - symbolic Tensor (or compatible)
:Parameter: *ift* - symbolic Tensor (or compatible)
:Parameter: *iff* - symbolic Tensor (or compatible)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论