提交 8e08392b authored 作者: Dustin Webb's avatar Dustin Webb

Removed extraneous backslashes.

上级 25aca395
...@@ -1641,7 +1641,7 @@ def local_elemwise_alloc_op(ElemwiseOP, AllocOP, DimShuffleOP): ...@@ -1641,7 +1641,7 @@ def local_elemwise_alloc_op(ElemwiseOP, AllocOP, DimShuffleOP):
def dimshuffled_alloc(i): def dimshuffled_alloc(i):
return (isinstance(i.owner.op, DimShuffleOP) and return (isinstance(i.owner.op, DimShuffleOP) and
i.owner.inputs[0].owner and \ i.owner.inputs[0].owner and
isinstance(i.owner.inputs[0].owner.op, AllocOP)) isinstance(i.owner.inputs[0].owner.op, AllocOP))
# At least one input must have an owner that is either a AllocOP or a # At least one input must have an owner that is either a AllocOP or a
...@@ -1699,8 +1699,8 @@ def local_elemwise_alloc_op(ElemwiseOP, AllocOP, DimShuffleOP): ...@@ -1699,8 +1699,8 @@ def local_elemwise_alloc_op(ElemwiseOP, AllocOP, DimShuffleOP):
if (theano.config.experimental.local_alloc_elemwise_assert if (theano.config.experimental.local_alloc_elemwise_assert
and not node.fgraph.shape_feature.same_shape(i, cmp_op)): and not node.fgraph.shape_feature.same_shape(i, cmp_op)):
assert_op = assert_(assert_op, assert_op = assert_(assert_op,
*[T.eq(i.shape[idx], cmp_op.shape[idx])\ *[T.eq(i.shape[idx], cmp_op.shape[idx])
for idx in xrange(i.type.ndim) \ for idx in xrange(i.type.ndim)
if not i.type.broadcastable[idx]]) if not i.type.broadcastable[idx]])
new_i.append(i.owner.inputs[0]) new_i.append(i.owner.inputs[0])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论