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

Renamed lazycond to ifelse to allow space for a switch like op.

As James provided in the coments, cond might be misleading, since is usually associated to something si,ilar to a switch clause.
上级 6431f8f4
...@@ -19,7 +19,7 @@ Conditions ...@@ -19,7 +19,7 @@ Conditions
.. code-block:: python .. code-block:: python
from theano import tensor as T from theano import tensor as T
from theano.lazycond import ifelse from theano.ifelse import ifelse
import theano, time, numpy import theano, time, numpy
a,b = T.scalars('a','b') a,b = T.scalars('a','b')
......
...@@ -18,7 +18,7 @@ Conditions ...@@ -18,7 +18,7 @@ Conditions
.. code-block:: python .. code-block:: python
from theano import tensor as T from theano import tensor as T
from theano.lazycond import ifelse from theano.ifelse import ifelse
import theano, time, numpy import theano, time, numpy
a,b = T.scalars('a','b') a,b = T.scalars('a','b')
......
...@@ -24,7 +24,7 @@ from tensor import opt ...@@ -24,7 +24,7 @@ from tensor import opt
from scan_module.scan_utils import find_up from scan_module.scan_utils import find_up
from scan_module.scan_utils import clone from scan_module.scan_utils import clone
_logger = logging.getLogger('theano.lazycond') _logger = logging.getLogger('theano.ifelse')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论