Is there any work around to make a differentiable torch.max?

Please see this issue