mindspore/docs/api/api_python/dataset/mindspore.dataset.Dataset.u...

8 lines
196 B
ReStructuredText
Raw Normal View History

2021-12-04 19:03:07 +08:00
.. py:method:: use_sampler(new_sampler)
2021-12-02 14:16:26 +08:00
2022-01-13 16:43:07 +08:00
为当前数据集对象更换一个新的采样器。
2021-12-02 14:16:26 +08:00
2021-12-04 20:36:47 +08:00
**参数:**
2021-12-02 14:16:26 +08:00
2021-12-04 20:36:47 +08:00
- **new_sampler** (Sampler) :替换的新采样器。