提交 4d4bc1f5 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added a docstring

上级 ec92210b
...@@ -941,6 +941,12 @@ class GpuCAReduce(GpuOp): ...@@ -941,6 +941,12 @@ class GpuCAReduce(GpuOp):
""" % locals() """ % locals()
def c_code_reduce_ccontig(self, sio, node, name, x, z, fail): def c_code_reduce_ccontig(self, sio, node, name, x, z, fail):
"""
WRITEME
IG: I believe, based on how this is called in c_code, that it
is for the case where we are reducing on all axes and x is
C contiguous.
"""
print >> sio, """ print >> sio, """
{ {
if(CudaNdarray_SIZE(%(x)s)==0){ if(CudaNdarray_SIZE(%(x)s)==0){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论