Skip to content

<Fixed a bug in accuracy calculation>#221

Open
htlee6 wants to merge 1 commit intoyunjey:masterfrom
htlee6:master
Open

<Fixed a bug in accuracy calculation>#221
htlee6 wants to merge 1 commit intoyunjey:masterfrom
htlee6:master

Conversation

@htlee6
Copy link

@htlee6 htlee6 commented Oct 20, 2020

<The variable correct is a tensor object, which may lead to a
RuntimeError when divided by an int. Using the method .item() solves
this problem. Fix #220>

<The variable `correct` is a tensor object, which may lead to a
RuntimeError when divided by an int. Using the method `.item()` solves
this problem. Fix yunjey#220>
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.

RuntimeError in Logistic Regression python file

1 participant