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
Validation datasets cannot use IterableDatsets because Lightning still needs the __len__ method of the validation dataset. I tracked the __len__ call to the line I reference below.
🐛 Bug
Colab to Reproduce: https://colab.research.google.com/drive/1YEdFCv0_VkdOG9FVibPzGAOv3tH-vpki
Validation datasets cannot use IterableDatsets because Lightning still needs the
__len__
method of the validation dataset. I tracked the__len__
call to the line I reference below.https://github.com/PyTorchLightning/pytorch-lightning/blob/48e808c20e55fae47fc58b3e2c4e2056883b88b4/pytorch_lightning/trainer/data_loading.py#L222
Particularly, the
if dl
statement implicitly calls the__len__
function of the dataset.The text was updated successfully, but these errors were encountered: