Lightning-AI/pytorch-lightning

support len(datamodule)

Open

#5.965 geöffnet am 14. Feb. 2021

Auf GitHub ansehen
 (13 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (3.233 Forks)batch import
data handlingfeaturegood first issuehelp wanted

Repository-Metriken

Stars
 (26.687 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 15h) (3 gemergte PRs in 30 T)

Beschreibung

Let's add support for len(datamodule) so we can get the following:

len(datamodule)

# prints:  
# train_dataloder_1:   200 samples
# train_dataloader_2:  500 samples
# tval_dataloder_1:    200 samples
# val_dataloader_2:    500 samples
# test_dataloder_1:    200 samples
# test_dataloader_2:   500 samples

cc @edenafek

Contributor Guide