dwardzheng / MFFN_COD

MIT License
32 stars 8 forks source link

about train #5

Open ycyinchao opened 1 year ago

ycyinchao commented 1 year ago

Hello, I am very interested in this job. I tried to download the code deployment environment and train the model. I found the following errors: image I wonder if an error was reported due to incomplete code (indeed, the pi attribute was not found in pytorch)

Zinn77 commented 1 year ago

That's because the version of tensorly is incorrect.

que-y commented 1 year ago

That's because the version of tensorly is incorrect.

May I ask you what the correct version should be

que-y commented 1 year ago

According to the suggestions of netizens, I resolved the problem that AttributeError: module 'torch' has no attribute 'pi' by replacing “import torch” with “import math import torch torch.pi=math.pi”. However, there is another issue that AttributeError: module 'torch' has no attribute 'e'. I haven't found a way to solve it. Looking forward to your reply.

2085924055 commented 9 months ago

I have the same problem. “AttributeError: module 'torch' has no attribute 'e'“ Has it been solved

Guoli-w commented 6 months ago

i think 'torch' has no attribute 'e' may be math.e solved