提交 1e5f9171 authored 作者: Frederic Bastien's avatar Frederic Bastien

make use of all that is imported from gof.python25 that make it compatible with python24

上级 dca225d9
......@@ -617,7 +617,7 @@ def local_upcast_elemwise_constant_inputs(node):
else:
try:
cval_i = get_constant_value(i) # works only for scalars I think
if 0==sum((not b for b in i.broadcastable)): # I mean all() but this might work in python2.4
if all((not b for b in i.broadcastable)):
new_inputs.append(T.cast(cval_i, output_dtype))
else:
if shape_i is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论