Skip to content
Discussion options

You must be logged in to vote

since you set average=None when you initialize the Accuracy metric, the output will be the accuracy score calculated per class. As this is a non-scalar tensor and self.log is only intended to be used with scalar tensors, you get this error.

Replies: 2 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@sivakhno
Comment options

@SkafteNicki
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #7370 on May 05, 2021 09:33.