Skip to content

UserWarning: Metric AUROC will save all targets and predictions in buffer. #524

Discussion options

You must be logged in to vote

Hi @blurry-mood, are you resetting the metric between epochs:

def training/validation_epoch_end(self):
    val = self.auroc_metric.compute()
    self.log("train/val_auroc", val)
    self.auroc_metric.reset()  # reset before next epoch

if not you are accumulating over all epochs which will lead to OOM.

Replies: 1 comment 2 replies

Comment options

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

@SkafteNicki
Comment options

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