Lightning-AI/pytorch-lightning

support len(datamodule)

オープン

#5,965 opened on 2021/02/14

 (14 件のコメント) (0 件のリアクション) (0 人の担当者)Python (3,233 件のフォーク)batch import
data handlingfeaturegood first issuehelp wanted

Repository metrics

Stars
 (26,687 個のスター)
PR merge metrics
 (平均マージ 9d 15h) (30d で 3 merged PRs)

説明

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

コントリビューターガイド