nvidia.dali.experimental.dynamic.ones_like#
- nvidia.dali.experimental.dynamic.ones_like(data_like, /, *, batch_size=None, device=None, dtype=None)#
Returns new data with the same shape and type as the input array, filled with ones.
- Supported backends
‘cpu’
- Parameters:
data_like¶ (Tensor/Batch) – The input data value to copy the shape and type from.
- Keyword Arguments:
dtype¶ (
nvidia.dali.types.DALIDataType, optional, default = DALIDataType.INT32) – Overrides the output data type.