How do I do a MaxPool or AveragePool?

We don’t currently have support for AveragePool in Concrete ML, we are adding support for new operators regularly, Conv2D being one such example now available in Concrete ML, so stay tuned!

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.