Skip to content
Discussion options

You must be logged in to vote

Well, you are defining the forward function inside the def init function. You should remove the indentation before the def forward.
I recommend you to turn on the Indentation guides from tools>settings>editor.
Example of a correct implementation:

Replies: 3 comments 3 replies

Comment options

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

You must be logged in to vote
3 replies
@Pouyaexe
Comment options

@Sarthak-Singh04
Comment options

@mrdbourke
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants