Shortcuts

Function torch::linalg::lstsq

Function Documentation

std::tuple<Tensor, Tensor, Tensor, Tensor> torch::linalg::lstsq(const Tensor &self, const Tensor &b, c10::optional<double> cond, c10::optional<c10::string_view> driver)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources