Is torch.max(x,y) differentiable?

Hi,

Assuming that x and y are floating point gradients, then the element-wise max is differentiable yes. The gradient will flow back, for each value, to the element that was used.

3 Likes