fixed max pooling layer to allow for negative values