bayesiains / nflows

Normalizing flows in PyTorch
MIT License
845 stars 118 forks source link

Update lu.py to use torch.linalg.solve_triangular instead of deprecated torch.solve_triangular #58

Closed juancamilog closed 2 years ago

juancamilog commented 2 years ago

On pytorch 1.11, torch.triangular_solve is deprecated, which is used by the flows.transforms.OneByOneConvolution and flows.transforms.LULinear classes.

Source: https://pytorch.org/docs/stable/generated/torch.triangular_solve.html

juancamilog commented 2 years ago

Closing because an existing PR (#57 ) already addresses this.