Replies: 1 comment
-
Hey @sachinruk, If I remember it correctly, The logger will have a corresponding "step" and "epoch" suffix. So you don't have to declare two different metrics. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I have a metric that looks like so (straight from docs):
If I declare this inside my LightningModule init as
self.valid_acc = MyAccuracy()
and inside validation step if I doself.log('valid_acc', self.valid_acc, on_step=True, on_epoch=True)
how would it know to differentiate between the batch metrics vs epoch metrics. To my understanding it's just callingcompute
in each case where the batch accuracy is overridden byself.correct.float() / self.total
where collect and total are values accumulated so far.Otherwise do I need to declare two metrics in my init for the batch and epoch one separately?
Beta Was this translation helpful? Give feedback.
All reactions