提交 a80ee01a authored 作者: Razvan Pascanu's avatar Razvan Pascanu 提交者: David Warde-Farley

restore pep8 compatibility

上级 1ab45a7f
...@@ -52,7 +52,7 @@ class IfElse(PureOp): ...@@ -52,7 +52,7 @@ class IfElse(PureOp):
Example usage: Example usage:
``rval = ifelse(condition, rval_if_true1, rval_if_true2, .., rval_if_trueN, ``rval = ifelse(condition, rval_if_true1, .., rval_if_trueN,
rval_if_false1, rval_if_false2, .., rval_if_falseN)`` rval_if_false1, rval_if_false2, .., rval_if_falseN)``
:note: :note:
...@@ -271,17 +271,17 @@ def ifelse(condition, then_branch, else_branch, name=None): ...@@ -271,17 +271,17 @@ def ifelse(condition, then_branch, else_branch, name=None):
:type then_branch: list of theano expressions/ theano expressions :type then_branch: list of theano expressions/ theano expressions
:param then_branch: :param then_branch:
A single theano variable or a list of theano variables that the A single theano variable or a list of theano variables that the
function should return as the output if ``condition`` evaluates to true. function should return as the output if ``condition`` evaluates to
The number of variables should match those in the ``else_branch``, and true. The number of variables should match those in the
there should be a one to one correspondance (type wise) with the ``else_branch``, and there should be a one to one correspondance
tensors provided in the else branch (type wise) with the tensors provided in the else branch
:type else_branch: list of theano expressions/ theano expressions :type else_branch: list of theano expressions/ theano expressions
:param else_branch: :param else_branch:
A single theano variable or a list of theano variables that the A single theano variable or a list of theano variables that the
function should return as the output if ``condition`` evaluates to false. function should return as the output if ``condition`` evaluates to
The number of variables should match those in the then branch, and false. The number of variables should match those in the then branch,
there should be a one to one correspondace (type wise) with the and there should be a one to one correspondace (type wise) with the
tensors provided in the then branch. tensors provided in the then branch.
:return: :return:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论