torch.solve — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.solve() is deprecated in favor of torch.linalg.solve() and will be removed in a future PyTorch release. torch.linalg.solve() has its arguments reversed and does not return the LU factorization of the input. To get the LU factorization see torch.lu(), which may be used with torch.lu_solve() and torch.lu_unpack().
torch — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch. The torch package contains data structures for multi-dimensional tensors and defines mathematical operations over these tensors. Additionally, it provides many utilities for efficient serializing of Tensors and arbitrary types, and other useful utilities.
torch.linalg.solve — PyTorch 1.10.1 documentation
pytorch.org › generated › torchtorch.linalg.solve. Computes the solution of a square system of linear equations with a unique solution. A A is invertible . This function assumes that. A A is invertible. Supports inputs of float, double, cfloat and cdouble dtypes. Also supports batches of matrices, and if the inputs are batches of matrices then the output has the same batch ...