In the traditional pooling layer, the side length during pooling is fixed.
At present, I want to try to implement pooling with variable side length, tentatively called “soft pooling”.
The details are as follows.
traditional pooling
“soft pooling”
How can I implement such a model layer?