Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Error #29

Closed
noUmbrella opened this issue Sep 29, 2019 · 1 comment
Closed

Running Error #29

noUmbrella opened this issue Sep 29, 2019 · 1 comment

Comments

@noUmbrella
Copy link

When I run qpth in pytorch1.1, it shows that the 'factor_kkt_eye = torch.eye(nineq).repeat(nBatch, 1, 1).type_as(R).bool()' in 'qpth/solvers/pdipm/batch.py' is error because tensor hass no attribute bool.

@bamos
Copy link
Member

bamos commented Sep 30, 2019

Can you try with pytorch 1.3? This should still work

>>> import torch
torc>>> torch.__version__
'1.3.0.dev20190907'
>>> torch.randn(4).bool()
tensor([True, True, True, True])

@bamos bamos closed this as completed Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants