MetaOptNet icon indicating copy to clipboard operation
MetaOptNet copied to clipboard

qpth Error: Cannot perform LU factorization on Q.

Open Ze-Yang opened this issue 6 years ago • 4 comments

Pytorch 1.0.1. Still have this problem with RTX2080ti.

Ze-Yang avatar Jan 17 '20 12:01 Ze-Yang

Pytorch 1.3.1 + Python 3.6 have same problem.

WHQ1111 avatar Feb 09 '20 14:02 WHQ1111

I am not sure why this happens. FYI, I am able to run the code with qpth 0.0.13.

kjunelee avatar Feb 10 '20 00:02 kjunelee

Upgrade the version of qpth might be work. my packages: Python3.7.6 + Pytorch 1.2.0 + qpth 0.015

cryu854 avatar Jun 07 '20 03:06 cryu854

The suggestion by @cryu854 seems to have worked for me (using torch==1.2.0 and qpth==0.0.15). The script runs now, but there are a number of other warnings like:

/pytorch/torch/csrc/autograd/python_function.cpp:638: UserWarning: Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)
/pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/pytorch/aten/src/ATen/native/BatchLinearAlgebra.cpp:1162: UserWarning: Passing RHS tensor with number of dimensions = 2 is deprecated, and will be removed in the next release. Please unsqueeze the last dimension to obtain an RHS tensor with number of right hand sides = 1

Not sure if any of these impact the correctness of training.

psandovalsegura avatar Jul 12 '21 16:07 psandovalsegura