torch icon indicating copy to clipboard operation
torch copied to clipboard

analog of python's WeightedRandomSampler etc

Open tdhock opened this issue 7 months ago • 1 comments

Python has WeightedRandomSampler https://docs.pytorch.org/docs/stable/data.html#torch.utils.data.WeightedRandomSampler R https://github.com/mlverse/torch/blob/main/R/utils-data-sampler.R has some other samplers like in Python (RandomSampler, BatchSampler) but not all of them. Can the missing ones be added please?

tdhock avatar Jul 23 '25 02:07 tdhock

also these are not exported, but a previous issue indicated that they could be #808

tdhock avatar Jul 23 '25 02:07 tdhock