fix api document

pull/2042/head
yanghaitao 5 years ago
parent a6a9f88453
commit c12ffc1e90

@ -158,14 +158,38 @@ class BuiltinSampler:
Given these conditions, we need to output what the sampler count is for this sampler. Given these conditions, we need to output what the sampler count is for this sampler.
The following table shows the possible results from calling this function. The following table shows the possible results from calling this function.
child sampler num_samples child_samples result .. list-table::
------------- ----------- ------------- -------- :widths: 25 25 25 25
T x y min(x, y) :header-rows: 1
T x None x
T None y y * - child sampler
T None None None - num_samples
None x n/a x - child_samples
None None n/a None - result
* - 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
Returns: Returns:
int, The number of samples, or None int, The number of samples, or None

Loading…
Cancel
Save