tristandeleu / pytorch-meta

A collection of extensions and data-loaders for few-shot learning & meta-learning in PyTorch
https://tristandeleu.github.io/pytorch-meta/
MIT License
1.98k stars 256 forks source link

Fix calls for len(CombinationRandomSampler) #53

Closed gdahia closed 4 years ago

gdahia commented 4 years ago

Closes https://github.com/tristandeleu/pytorch-meta/issues/52

I have also changed the error type when passing a data_source that is not a CombinationMetaDataset to a CombinationSampler from ValueError to TypeError, and added error messages for them.