提交 47678b7a authored 作者: Frederic's avatar Frederic

Fix import

上级 75975a0c
......@@ -2,6 +2,7 @@ import numpy
import theano
from theano.gof import hashtype, Type, Variable
from theano.gof.python25 import any
from theano import scalar as scal
......@@ -399,7 +400,7 @@ class TensorType(Type):
if b in named_broadcastable:
bcast = named_broadcastable[b]
else:
if python_any(b):
if any(b):
bcast = str(b)
else:
bcast = '%iD' % len(b)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论