torch.lu_unpack
torch.lu_unpack(LU_data, LU_pivots, unpack_data=True, unpack_pivots=True, *, out=None)
Unpacks the LU decomposition returned by "lu_factor()" into the P,
   L, U matrices.
See also:
 "lu()" returns the matrices from the LU decomposition. Its
 gradient formula is more efficient than that of doing
 "lu_factor()" followed by "lu_unpack()".

Parameters:
      * LU_data (Tensor) -- the packed LU factorization data
  * **LU_pivots** (*Tensor*) -- the packed LU factorization pivots

  * **unpack_data** (*bool*) -- flag indicating if the data should
    be unpacked. If "False", then the returned "L" and "U" are
    empty tensors. Default: "True"

  * **unpack_pivots** (*bool*) -- flag indicating if the pivots
    should be unpacked into a permutation matrix "P". If "False",
    then the returned "P" is  an empty tensor. Default: "True"

Keyword Arguments:
      out (tuple, optional) -- output tuple of three