mindspore.dataset.MappableDataset.use_sampler ============================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/dataset/dataset_method/sampler/mindspore.dataset.MappableDataset.use_sampler.rst :alt: 查看源文件 .. py:method:: mindspore.dataset.MappableDataset.use_sampler(new_sampler) 替换当前数据集的最末子采样器,保持父采样器不变。 参数: - **new_sampler** (Sampler) - 用于替换的新采样器。