InstallΒΆ

To install pytorch-minimize, users may either 1) install the official PyPI release via pip, or 2) install a bleeding edge distribution from source.

Install via pip (official PyPI release):

pip install pytorch-minimize

Install from source (bleeding edge):

pip install git+https://github.com/rfeinman/pytorch-minimize.git

PyTorch requirement

This library uses latest features from the actively-developed torch.linalg module. For maximum performance, users should install pytorch>=1.9, as it includes some new items not available in prior releases (e.g. torch.linalg.cholesky_ex). Pytorch-minimize will automatically use these features when available.