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

TypeError: forward() takes 1 positional argument but 2 were given #15

Open
jccmoing-bit opened this issue Oct 19, 2022 · 2 comments
Open

Comments

@jccmoing-bit
Copy link

Hello, I cloned your source code and tested it on the local server, and the following error message appeared:
TypeError: forward() takes 1 positional argument but 2 were given

@AlanLi1997
Copy link
Owner

forward() takes 1 positional argument but 2 were given

Hi, You need to provide a complete TraceBack to allow me to locate where the error occurred and find the cause. Please provide the complete reproducible code snippet. Please tell me more about the problem you're having (an example: I got an error at line100 when running the train.py, TraceBack: TypeError: forward() takes 1 positional argument but 2 were given).

@jccmoing-bit
Copy link
Author

forward() takes 1 positional argument but 2 were given

Hi, You need to provide a complete TraceBack to allow me to locate where the error occurred and find the cause. Please provide the complete reproducible code snippet. Please tell me more about the problem you're having (an example: I got an error at line100 when running the train.py, TraceBack: TypeError: forward() takes 1 positional argument but 2 were given).

Thank you for your reply I have solved this problem .Thank you very much for your contribution

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

2 participants