Design
Models
API
API Mapping
Migration Guide
Syntax Support
FAQ
RELEASE NOTES
Add a child sampler for the current dataset.
new_sampler (Sampler) – The child sampler to be added.
Examples
>>> new_sampler = ds.DistributedSampler(10, 2) >>> dataset.add_sampler(new_sampler) # dataset is an instance of Dataset