diff --git a/src/operators/kernel/cl/elementwise_add_kernel.cpp b/src/operators/kernel/cl/elementwise_add_kernel.cpp index 6cc7b819b104ad3819065df3fe0d42fa923189bf..a64f3c688b4519daa896d6f855fc464ab8b77f57 100644 --- a/src/operators/kernel/cl/elementwise_add_kernel.cpp +++ b/src/operators/kernel/cl/elementwise_add_kernel.cpp @@ -64,7 +64,7 @@ void ElementwiseAddKernel::Compute( cl_mem input_image = input->GetCLImage(); cl_mem bias_image = bias->GetCLImage(); cl_mem output_image = output->GetCLImage(); - int tensor_w = input->dims()[4]; + int tensor_w = input->dims()[3]; status = clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *)&input_image); CL_CHECK_ERRORS(status); status = clSetKernelArg(kernel, 1, sizeof(cl_mem), (void *)&bias_image);