Skip to content
Discussion options

You must be logged in to vote

Hi @FluidSense,

Could you try just updating the MetricCollection during the _step method and then log in _epoch_end method. Something like:

def training_step(self, batch, batch_idx):
    logits = self(x)
    self.train_metrics.update(logits, y)

def train_epoch_end(self, outputs):
    self.log_dict(self.train_metrics.compute())

Replies: 1 comment 2 replies

Comment options

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

@johanneskvamme
Comment options

Answer selected by johanneskvamme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment