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/pytorchbackend.py", line 152, in solve
solution, = torch.gesv(matrix2, matrix1)
AttributeError: module 'torch' has no attribute 'gesv'
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/pytorchbackend.py", line 152, in solve solution, = torch.gesv(matrix2, matrix1) AttributeError: module 'torch' has no attribute 'gesv'