I was wanting to add a maximum in my neural network, but this seems a bad thing to do since it kills the gradients to all but one of the inputs.
Is there some kind of "weighted maximum" that allows the gradients to backpropagate?
Edit: I had a two dimensional tensor (correlation matrix) I wanted to reduce to one dimension.