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

AttributeError: 'int' object has no attribute 'numel' #3

Open
Joey0538 opened this issue Mar 5, 2021 · 6 comments
Open

AttributeError: 'int' object has no attribute 'numel' #3

Joey0538 opened this issue Mar 5, 2021 · 6 comments

Comments

@Joey0538
Copy link

Joey0538 commented Mar 5, 2021

When I run !python3 main.py, I get this error. Its Python 3.7 and all latest version of torch libraries in Google Colab. Won't this work with the latest versions? Is it must that I must use the versions specified in the used library version list?
Please help me out.

@Eighonet
Copy link

Same. Is there a solution?

@Joey0538
Copy link
Author

Same. Is there a solution?

I suggest using the tensorflow implementation of the same. Follow this... https://github.com/yao8839836/text_gcn
Easy to work with. Pytorch implementations have library compatibility issues.

@whtitefall
Copy link

same issue here, did you find a solution for this?

or just simply switch to TensorFlow implementation

@Joey0538
Copy link
Author

Joey0538 commented Dec 4, 2021

simply switch to TensorFlow implementation, Pytorch libraries got too many compatibility issues.

@mbaxamb3333
Copy link

Did anybody find the solution?
I would gladly try use the other options but unfortunately that one is implemented in TensorFlow 1 and therefore can't be exported to onnx for example.

@RPZ97
Copy link

RPZ97 commented Jul 7, 2022

First of all thanks to the author, I use the source code and it works fine after some modifications. Now the code can run normally on torch1.10.0 cuda 11.3, I put the relevant modifications on the gitee repository, the link is as follows :
https://gitee.com/zrpNUDT/Text-GCN

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

5 participants