- ivy.vjp(func, *primals)#
Compute a (reverse-mode) vector-Jacobian product of func.
func (callable) – Function to be differentiated.
primals – sequence of primal values at which the Jacobian of func should be evaluated.
ret – The output of func evaluated at primals. And a function from a cotangent vector representing the vector-Jacobian product of fun evaluated at primals.