nvidia.dali.experimental.dynamic.ones#
- nvidia.dali.experimental.dynamic.ones(
- *,
- batch_size=None,
- device=None,
- dtype=None,
- layout=None,
- shape=None,
Returns new data of given shape and type, filled with ones.
- Supported backends
‘cpu’
- Keyword Arguments:
dtype¶ (
nvidia.dali.types.DALIDataType, optional, default = DALIDataType.INT32) – Output data type.layout¶ (layout str, optional) –
Output layout.
If set and not empty, the layout must match the dimensionality of the output.
shape¶ (int or list of int or Tensor/Batch of int, optional) – Shape of the output data.