That should not be a problem, the function is simply not smooth at one specific value, but we can still take the (sub-)derivative and do (sub-)gradient descent. It is essentially the same as ReLU, LeakyReLU, etc.