Skip to content

Error in running qpth of e2e-model-learning. AttributeError: module 'torch' has no attribute 'all'  #43

@parimuns

Description

@parimuns

Hello Bamos

I am trying to run code of "locuslab/e2e-model-learning/power_sched" repository. I am using pytorch =0.3.1 and torchvision= 0.2 as required by that repository. But when I run that, I get an error related to qpth as shown below .

> /usr/local/lib/python3.6/dist-packages/qpth/qp.py(84)forward()
     82                 for i in range(nBatch):
     83                     e, _ = torch.eig(Q[i])
---> 84                     if not torch.all(e[:,0] > 0):
     85                         raise RuntimeError('Q is not SPD.')'''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions