xnn.ffnn.models.amoeba_kernels.mutual_backward#

xnn.ffnn.models.amoeba_kernels.mutual_backward(mu, lam, r_vec, du, i_, k_, count=None, select=None)[source]#

grad_r (M, 3) and grad_du (M, 2) of sum(lam * (T mu)) over the pairs (the products of the implicit backward of the induction); count and select as in pairs_forward() (the pairs not visited have zero ladders and get zero gradients).

Parameters:
Return type:

tuple