提交 a6f1f6f7 authored 作者: abergeron's avatar abergeron 提交者: GitHub

Merge pull request #5277 from nouiz/cleanup

Clean up and maybe fix gh-5273. No test for the fix to issue.
......@@ -703,19 +703,8 @@ second dimension
if bcast and not outs[0].broadcastable[j]]
if to_sum:
shuffle = []
j = 0
for bcast in ipt.type.broadcastable:
if bcast == 1:
shuffle.append('x')
else:
shuffle.append(j)
j += 1
# close if
# close for
sr = Sum(axis=to_sum)(rval[i])
sr = sr.dimshuffle(shuffle)
# sr = DimShuffle(sr.type.broadcastable, shuffle)(sr)
sr = theano.tensor.basic.sum(
rval[i], axis=to_sum, keepdims=True)
rval[i] = sr
# close if
# close for
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论