A Closed-Form Learned Pooling for Deep Classification Networks