<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_gradients(self, grads):
 """ Pull out the gradients, be careful as the order must match the order in which the parameters are added """

        self.sigma2.gradient = grads[0]
        self.v.gradient = grads[1]