deeplake
deeplake copied to clipboard
[FEATURE] API for sampler
Thanks for your remarkable contribution!
Is there any API for sampler in pytorch when getting the dataloader?
e.g. torch.utils.data.WeightedRandomSampler
@Phoveran thanks for raising the issue, we are reimplementing the pytorch dataloader and adding the sampler strategies as well. Please stay tuned!
Hi, is there a way to request a subset of a dataset? For example, the first 256 samples?
yes you should be able to ds[0:256].pytorch(...)
Hi @Phoveran We added support for sampling using our Tensor Query Language (TQL) described here. Unfortunately, we decided not to support native Pytorch Samplers, but functionally, you should be able to satisfy your use-case using TQL.