channel-pooling along any dimension for ND-tensor (CPU)
channel pooling along any dimension (GPU)