Skip to content

How to loop over the entire dataset before training start #12809

Discussion options

You must be logged in to vote

you can do

def on_train_start(self):
    for batch in self.trainer.train_dataloader.loaders:
        ...

Replies: 1 comment 1 reply

Comment options

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

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