Skip to content

forward() takes 1 positional argument but 2 were given #8091

Discussion options

You must be logged in to vote

Hi, have a look at the full stack trace so you know which of the forward methods of these different nn.Modules is meant.

have you verified that
u(x)
works?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by morestart
Comment options

You must be logged in to vote
1 reply
@awaelchli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants