rfeinman / pytorch-minimize

Newton and Quasi-Newton optimization with PyTorch
https://pytorch-minimize.readthedocs.io
MIT License
292 stars 34 forks source link

Trustregion-exact triangular solver update #26

Closed ahenkes1 closed 1 year ago

ahenkes1 commented 1 year ago

Updated '.../torchmin/trustregion/exact.py:67' to resolve the following warning:

"UserWarning: torch.triangular_solve is deprecated in favor of torch.linalg.solve_triangularand will be removed in a future PyTorch release. torch.linalg.solve_triangular has its arguments reversed and does not return a copy of one of the inputs. X = torch.triangular_solve(B, A).solution should be replaced with X = torch.linalg.solve_triangular(A, B)."

rfeinman commented 1 year ago

Awesome thanks!