Skip to content

DDP Accumulate predictions from all processes across all nodes to compute accuracy #461

Discussion options

You must be logged in to vote

Hi,
The docs state that the metric is reset IF the metric is directly logged using self.log, something like this:

self.log('acc', self.accuracy)  # log the object not the return value

however, the easiest thing for you to do is to manually just reset the metric by adding self.accuracy.reset() as the last statement to your validation_epoch_end method.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by SkafteNicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants