As this SAM function is differentiable [1]}, it permits our model to be trained seamlessly unlike the discrete \(Argmax\)  function. It also allows a sub-pixel accuracy, avoiding thus the use of upsampling layers to increase the size of the feature maps, and saving resources.
