Reset gradients after accumulating deltas.