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

Fix import

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