Skip to content
Discussion options

You must be logged in to vote

Ok, I am a little 😳 shamed....I should have looked here. I missed that on the call loss_fn = nn.CrossEntropyLoss() I hadn't placed the parenthesis down. Unfortunately, the error message wasn't too helpful here. Putting those in solve the problem, and the rest of the code works now.

Replies: 2 comments 1 reply

Comment options

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

Comment options

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