Implement avg pool test

This commit is contained in:
2024-03-20 21:57:22 +01:00
parent dfff0360d9
commit 6f4cdf3792
7 changed files with 147 additions and 32 deletions

View File

@@ -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;
}