提交 67307744 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Make if condition clearer.

上级 02b76031
...@@ -668,8 +668,8 @@ second dimension ...@@ -668,8 +668,8 @@ second dimension
# TODO: make sure that zeros are clearly identifiable # TODO: make sure that zeros are clearly identifiable
# to the gradient.grad method when the outputs have # to the gradient.grad method when the outputs have
# some integer and some floating point outputs # some integer and some floating point outputs
if False in [str(out.type.dtype) in theano.tensor.continuous_dtypes if any(out.type.dtype not in theano.tensor.continuous_dtypes
for out in outs]: for out in outs):
# For integer output, return value may # For integer output, return value may
# only be zero or undefined # only be zero or undefined
# We don't bother with trying to check # We don't bother with trying to check
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论