Skip to content

Fix epoch accuracy (avoiding integer division) #227

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

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

Madder
Copy link
Contributor

@Madder Madder commented Apr 25, 2018

Fixes the constant 0 accuracy I get running this tutorial since v0.4
Epoch 0/24
train Loss: 0.8934 Acc: 0.0000
val Loss: 0.7645 Acc: 0.0000

Epoch 1/24
train Loss: 0.6792 Acc: 0.0000
val Loss: 0.2288 Acc: 0.0000

@chsasank chsasank merged commit 3f1cb23 into pytorch:master Apr 25, 2018
@chsasank
Copy link
Contributor

Thanks!

rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants