mindspore/docs/api/api_python/dataset/mindspore.dataset.BuiltinSa...

43 lines
847 B
ReStructuredText
Raw Normal View History

2022-01-19 11:26:42 +08:00
.. py:method:: get_num_samples()
返回采样器采集样本数量如果存在子采样器则子采样器计数可以是数值或None。这些条件会影响最终的采样结果。
2022-01-25 16:41:47 +08:00
2022-01-19 11:26:42 +08:00
下表显示了调用此函数的可能结果。
2022-01-25 16:41:47 +08:00
.. list-table::
:widths: 25 25 25 25
:header-rows: 1
2022-01-19 11:26:42 +08:00
2022-01-25 16:41:47 +08:00
* - 子采样器
- num_samples
- child_samples
- 结果
* - T
- x
- y
- min(x, y)
* - T
- x
- None
- x
* - T
- None
- y
- y
* - T
- None
- None
- None
* - None
- x
- n/a
- x
* - None
- None
- n/a
- None
2022-01-19 11:26:42 +08:00
**返回:**
int样本数可为None。