Lightning-AI/pytorch-lightning

support len(datamodule)

開放

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

 (14 則留言) (0 個反應) (0 位負責人)Python (3,233 個分叉)batch import
data handlingfeaturegood first issuehelp wanted

倉庫指標

星標
 (26,687 顆星)
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

貢獻者指南