Suppose we have the absolute difference as an error function:
$\mathit{loss}(w) = |m_x(w) - t|$
where $m_x$ is simply some model with input $x$ and weight setting $w$, and $t$ is the target value.
In gradient-descent optimisation, the initial idea is to take the gradient of the loss function, and update $w$ as below:
$w = w - \alpha\cdot\nabla \mathit{loss}(w)$
where the $\alpha$ is the learning rate. Wouldn't the gradient of the loss function in our case be:
$\nabla \mathit{loss}(w) = \nabla m_x(w)$
where $t$ is dropped because it is a constant? I feel I am missing a huge crucial point here.