提交 417046f7 authored 作者: David Warde-Farley's avatar David Warde-Farley

Typos/grammar.

上级 b42b547b
""" """
IfElse introduces lazy evaluation in Theano (coupled with the CVM/VM IfElse introduces lazy evaluation in Theano (coupled with the CVM/VM
linkers). It resembles the if clause of any programming languages, that linkers). It resembles the if clause of any programming language, that
has a `then` and `else` branch, and executes either one or the other has a `then` and `else` branch, and executes either one or the other
according to the condition provided. according to the condition provided.
This op contrast the already existent `swtich` op, that will evaluate both This op contrast the already existent `switch` op, that will evaluate both
branches of the clause and afterwards pick (according to the condition) branches of the clause and afterwards pick (according to the condition)
which value to report. Note also that `switch` is an elemwise operations (so which value to report. Note also that `switch` is an elemwise operation (so
it picks each entry of a matrix according to the condition) while `ifelse` it picks each entry of a matrix according to the condition) while `ifelse`
is a global operation with a scalar condition. is a global operation with a scalar condition.
""" """
...@@ -43,9 +43,9 @@ class IfElse(PureOp): ...@@ -43,9 +43,9 @@ class IfElse(PureOp):
According to a scalar condition `condition` the op evaluates and then According to a scalar condition `condition` the op evaluates and then
returns all the tensors provided on the `then` branch, otherwise it returns all the tensors provided on the `then` branch, otherwise it
evaluates and returns the tensors provided on the `else` branch. The op evaluates and returns the tensors provided on the `else` branch. The op
supports multiple tensors on each branch, conditioned that the same supports multiple tensors on each branch, with the condition that the same
number of tensors are on the `then` as on the `else` and there is a one number of tensors are on the `then` as on the `else` and there is a one
to one correspondance between them (shape and dtype wise). to one correspondence between them (shape and dtype wise).
The `then` branch is defined as the first N tensors (after the The `then` branch is defined as the first N tensors (after the
condition), while the `else` branch is defined as the last N tensors. condition), while the `else` branch is defined as the last N tensors.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论