I am trying to implement a custom pooling method - aka - even sum pooling (sum of all even numbers in the kernel). I looked into the max-pooling implementation here