From 06b2d4e1f2dcaf7438713284f64b4dee546efc6e Mon Sep 17 00:00:00 2001 From: notoraptor Date: Wed, 13 Sep 2017 15:30:12 -0400 Subject: [PATCH] Fix cython syntax --- pygpu/gpuarray.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygpu/gpuarray.pyx b/pygpu/gpuarray.pyx index 94f9b36181..a1e38bc4cf 100644 --- a/pygpu/gpuarray.pyx +++ b/pygpu/gpuarray.pyx @@ -1430,8 +1430,8 @@ cdef GpuArray pygpu_reshape(GpuArray a, unsigned int nd, const size_t *newdims, if cdims == NULL: raise MemoryError, "could not allocate cdims" + cdef size_t d try: - cdef size_t d for i in range(nd): d = newdims[i] if i == caxis: