Skip to content
Discussion options

You must be logged in to vote

Hi @sangrockEG! You can utilise self.current_epoch in your LightningModule:

def validation_step(self, batch, batch_idx):
    if self.current_epoch <= 9:
        return

https://pytorch-lightning.readthedocs.io/en/stable/common/lightning_module.html#current-epoch

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sangrockEG
Comment options

@akihironitta
Comment options

@sangrockEG
Comment options

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