added missing variable initialisation for stop, removed outdated comment, removed whitespaces

上级 44fe6458
...@@ -2987,7 +2987,6 @@ class GpuJoin(tensor.Join, GpuOp): ...@@ -2987,7 +2987,6 @@ class GpuJoin(tensor.Join, GpuOp):
shape_%(cdna)s[i] = CudaNdarray_HOST_DIMS(%(cdna)s)[i]; shape_%(cdna)s[i] = CudaNdarray_HOST_DIMS(%(cdna)s)[i];
if((i!=axis) && (shape_%(cdna)s[i]!=shape_out[i])) if((i!=axis) && (shape_%(cdna)s[i]!=shape_out[i]))
{ {
// compilation error when `fail`-string is added
%(fail)s; %(fail)s;
} }
} }
...@@ -3012,9 +3011,11 @@ class GpuJoin(tensor.Join, GpuOp): ...@@ -3012,9 +3011,11 @@ class GpuJoin(tensor.Join, GpuOp):
full_slice = PySlice_New(NULL, NULL, NULL); full_slice = PySlice_New(NULL, NULL, NULL);
PyObject *out_sub; PyObject *out_sub;
PyObject *start, *stop, *step; PyObject *start, *stop, *step;
start = NULL;
stop = NULL;
step = NULL; step = NULL;
sum = 0; sum = 0;
start = NULL;
""" % locals() """ % locals()
# start copying the data into the new out tensors # start copying the data into the new out tensors
for i, cdna in enumerate(inputs[1:]): for i, cdna in enumerate(inputs[1:]):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论