@ptrblck this solution gives the min and max nonzero cell across all images in the batch, which is unlikely to be the desired behavior.
I’m currently trying to solve the same problem, and so far haven’t found anything that can be done without a loop.