How do I do a MaxPool or AveragePool?

AveragePool is quite trivial to achieve in our framework but is not currently implemented. You can take a look at the available activation function. We will add average pooling along with Convolutional Neural Networks integration.

MaxPool, however, is a non-trivial operation in FHE and should be avoided. An approach to have MaxPool in FHE is to have some smooth maximum rather than max pooling.

1 Like