Lightning-AI/pytorch-lightning

support len(datamodule)

Open

#5,965 建立於 2021年2月14日

在 GitHub 查看
 (13 留言) (0 反應) (0 負責人)Python (3,233 fork)batch import
data handlingfeaturegood first issuehelp wanted

倉庫指標

Star
 (26,687 star)
PR 合併指標
 (平均合併 9天 15小時) (30 天內合併 3 個 PR)

描述

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

貢獻者指南