You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use trainer.fit(model, datamodule=dm) to start training.
"dm" is an object whose class inherited from pl.LightningDataModule, and in the class, I override the function:
#- PyTorch Lightning Version (e.g., 2.4.0):
#- PyTorch Version (e.g., 2.4):
#- Python version (e.g., 3.12):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
Bug description
I use
trainer.fit(model, datamodule=dm)
to start training."dm" is an object whose class inherited from
pl.LightningDataModule
, and in the class, I override the function:at the model's hook
on_train_epoch_start
, I update the dataset:in the
training_step
, the batch data is still old data, buttrainer.train_dataloader.dataset
is new:What version are you seeing the problem on?
v2.3
How to reproduce the bug
No response
Error messages and logs
Environment
Current environment
More info
No response
cc @justusschock
The text was updated successfully, but these errors were encountered: