mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Implement avg pool test
This commit is contained in:
@@ -49,7 +49,7 @@ __global__ void Kernels::avg_pooling(
|
||||
int i = blockDim.y * blockIdx.y + threadIdx.y;
|
||||
int c = blockDim.z * blockIdx.z + threadIdx.z;
|
||||
|
||||
if (i >= inputSize || j >= inputSize || c >= nChannels) {
|
||||
if (i >= outputSize || j >= outputSize || c >= outputSize) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user