Replies: 1 comment
-
Try creating an nn.Sequential in the class code. This is what pytorch official documentation suggests: https://pytorch.org/tutorials/beginner/basics/buildmodel_tutorial.html So for your code:
Let me know if this works! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Video 66
Time: 9:36:30
I defined the following model
Now I want to check the model is on the correct device

It seems like my model doesn't have any parameter and so I get an error. What can I do to fix this?
Beta Was this translation helpful? Give feedback.
All reactions