Fixes ticket #375.
a < b < c was failing silently by generating the graph "lt(b,c)". We now forbid
"boolean" comparison of the return value of __lt__, __le__, __gt__, __ge__.
We cannot forbid "boolean" comparison of TensorVariables in general, since the
syntax "if a:" is often used instead of "if a is not None:"
正在显示
请
注册
或者
登录
后发表评论