mindspore.dataset.MappableDataset.add_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.add_sampler.rst :alt: 查看源文件 .. py:method:: mindspore.dataset.MappableDataset.add_sampler(new_sampler) 为当前数据集添加子采样器。 参数: - **new_sampler** (Sampler) - 待添加的子采样器。