ext/cumo/narray/gen/tmpl/pooling_forward.c in cumo-0.3.0 vs ext/cumo/narray/gen/tmpl/pooling_forward.c in cumo-0.3.1
- old
+ new
@@ -96,15 +96,15 @@
x_cont_ptr = cumo_na_get_offset_pointer_for_read(x_cont);
y_ptr = cumo_na_get_offset_pointer_for_write(y);
status = cumo_cuda_cudnn_CreateTensorDescriptor(&x_desc, x_cont, cudnn_dtype);
- if (status != CUDNN_STATUS_SUCCESS) goto POOLING_ERROR;
+ if (status != CUDNN_STATUS_SUCCESS) goto POLLING_FORWARD_ERROR;
status = cumo_cuda_cudnn_CreateTensorDescriptor(&y_desc, y, cudnn_dtype);
- if (status != CUDNN_STATUS_SUCCESS) goto POOLING_ERROR;
+ if (status != CUDNN_STATUS_SUCCESS) goto POLLING_FORWARD_ERROR;
status = cumo_cuda_cudnn_CreatePoolingDescriptor(&pool_desc, int_mode, ndim, int_kernel_size, int_stride, int_pad);
- if (status != CUDNN_STATUS_SUCCESS) goto POOLING_ERROR;
+ if (status != CUDNN_STATUS_SUCCESS) goto POLLING_FORWARD_ERROR;
handle = cumo_cuda_cudnn_handle();
status = cudnnPoolingForward(
handle,
pool_desc,
@@ -112,12 +112,12 @@
x_desc,
(void*)x_cont_ptr,
(void*)&beta,
y_desc,
(void*)y_ptr);
- if (status != CUDNN_STATUS_SUCCESS) goto POOLING_ERROR;
+ if (status != CUDNN_STATUS_SUCCESS) goto POLLING_FORWARD_ERROR;
-POOLING_ERROR:
+POLLING_FORWARD_ERROR:
if (x_desc) cudnnDestroyTensorDescriptor(x_desc);
if (y_desc) cudnnDestroyTensorDescriptor(y_desc);
if (pool_desc) cudnnDestroyPoolingDescriptor(pool_desc);
cumo_cuda_cudnn_check_status(status);