- nvidia.dali.fn.coin_flip(*inputs, **kwargs)¶
This operator is now deprecated. Use
Generates random boolean values following a bernoulli distribution.
The probability of generating a value 1 (true) is determined by the
The shape of the generated data can be either specified explicitly with a
shapeargument, or chosen to match the shape of the input, if provided. If none are present, a single value per sample is generated.
- Supported backends
input (TensorList, optional) – Input to the operator.
- Keyword Arguments:
bytes_per_sample_hint (int or list of int, optional, default = ) –
Output size hint, in bytes per sample.
If specified, the operator’s outputs residing in GPU or page-locked host memory will be preallocated to accommodate a batch of samples of this size.
nvidia.dali.types.DALIDataType, optional) –
Output data type.
The generated numbers are converted to the output data type, rounding and clamping if necessary.
preserve (bool, optional, default = False) – Prevents the operator from being removed from the graph even if its outputs are not used.
probability (float or TensorList of float, optional, default = 0.5) – Probability of value 1.
seed (int, optional, default = -1) –
If not provided, it will be populated based on the global seed of the pipeline.
shape (int or list of int or TensorList of int, optional) – Shape of the output data.