提交 0629b998 authored 作者: Frederic's avatar Frederic

rename var to don't override another var of the same name.

上级 58fb7422
......@@ -395,9 +395,9 @@ def local_dimshuffle_lift(node):
inode = input.owner
if inode and isinstance(inode.op, Elemwise) and (len(input.clients) == 1):
# Don't use make_node to have tag.test_value set.
ret = inode.op(*[DimShuffle(input.type.broadcastable,
ret = inode.op(*[DimShuffle(inp.type.broadcastable,
op.new_order,
op.inplace)(input) for input in
op.inplace)(inp) for inp in
inode.inputs], **dict(return_list=True))
return ret
if inode and isinstance(inode.op, DimShuffle):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论