提交 2a1142f6 authored 作者: Gabe Schwartz's avatar Gabe Schwartz

Fixed mistakenly replaced use of locals().

This locals() wasn't inside a list comprehension and was also replaced incorrectly.
上级 4155d8bb
...@@ -661,7 +661,7 @@ class GpuCAReduce(GpuOp): ...@@ -661,7 +661,7 @@ class GpuCAReduce(GpuOp):
j = 0 j = 0
for i in xrange(nd_in): for i in xrange(nd_in):
if not self.reduce_mask[i]: if not self.reduce_mask[i]:
print >> sio, " || (CudaNdarray_HOST_DIMS(%(z)s)[%(j)s] !=CudaNdarray_HOST_DIMS(%s)[%d]) " % (x, i) print >> sio, " || (CudaNdarray_HOST_DIMS(%(z)s)[%(j)s] != CudaNdarray_HOST_DIMS(%(x)s)[%(i)d]) " % locals()
j += 1 j += 1
print >> sio, """ print >> sio, """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论