Note, minimizing the domain divergence is equivalent to maximizing the loss of the domain regressor.
the associated parameters, {W , u, d}, are updated in the direction of the gradient (since we maximize with respect to them, instead of minimizing).