提交 76b2c090 authored 作者: Frederic's avatar Frederic

Better error msg

上级 66bb1edf
...@@ -743,7 +743,6 @@ class GpuCAReduce(GpuOp): ...@@ -743,7 +743,6 @@ class GpuCAReduce(GpuOp):
%(z)s = (CudaNdarray*) CudaNdarray_NewDims(%(nd_out)s, new_dims); %(z)s = (CudaNdarray*) CudaNdarray_NewDims(%(nd_out)s, new_dims);
if (NULL == %(z)s) if (NULL == %(z)s)
{ {
PyErr_Format(PyExc_RuntimeError, "Failed to allocate output");
%(fail)s; %(fail)s;
} }
} }
...@@ -1832,7 +1831,7 @@ class GpuCAReduce(GpuOp): ...@@ -1832,7 +1831,7 @@ class GpuCAReduce(GpuOp):
""" % locals(), file=sio) """ % locals(), file=sio)
def c_code_cache_version_apply(self, node): def c_code_cache_version_apply(self, node):
version = [13] # the version corresponding to the c code in this Op version = [14] # the version corresponding to the c code in this Op
# now we insert versions for the ops on which we depend... # now we insert versions for the ops on which we depend...
scalar_node = Apply(self.scalar_op, scalar_node = Apply(self.scalar_op,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论