matrix may contain inf or NaN.
Supports input of float, double, cfloat and cdouble dtypes. Also
   supports batches of matrices, and if "A" is a batch of matrices
   then the output has the same batch dimensions.
See also:
 "torch.linalg.solve()" solves a system of linear equations using
 the LU decomposition with partial pivoting.

Warning:
 The LU decomposition is almost never unique, as often there are
 different permutation matrices that can yield different LU
 decompositions. As such, different platforms, like SciPy, or
 inputs on different devices, may produce different valid
 decompositions.

Warning:
 Gradient computations are only supported if the input matrix is
 full-rank. If this condition is not met, no error will be thrown,
 but the gradient may not be finite. This is because the LU
 decomposition with pivoting is not differentiable at these
 points.

Parameters: