Skip to content

CP_decompose error #11

@sxdnbnb

Description

@sxdnbnb

I use pytorch 1.10 and tensorly 0.4.0.,but I got error as following:
File "/content/drive/MyDrive/Tensor_decomposing/decompositions.py", line 14, in cp_decomposition_conv_layer
parafac(layer.weight.data, rank=rank, init='svd')
File "/usr/local/lib/python3.9/dist-packages/tensorly/decomposition/candecomp_parafac.py", line 153, in parafac
factor = T.transpose(T.solve(T.transpose(pseudo_inverse), T.transpose(factor)))
File "/usr/local/lib/python3.9/dist-packages/tensorly/backend/pytorch_backend.py", line 152, in solve
solution, _ = torch.gesv(matrix2, matrix1)
AttributeError: module 'torch' has no attribute 'gesv'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions