nvidia.dali.fn.full#

nvidia.dali.fn.full(
fill_value,
/,
*,
device=None,
name=None,
bytes_per_sample_hint=[0],
layout=None,
preserve=False,
shape=None,
)#

Returns new data of given shape and type, filled with a fill value.

If the fill_value is not a scalar, it must be broadcastable to the output shape (NumPy-style broadcasting). Dimensions are compared from innermost to outermost, and each dimension must either match or one of them must be 1. In case of different dimensionality, the input shape is padded with 1s for the missing outermost dimensions.

Supported backends
  • ‘cpu’

Parameters:

fill_value (TensorList) – The fill value.

Keyword Arguments:
  • bytes_per_sample_hint (int or list of int, optional, default = [0]) –

    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.

  • layout (layout str, optional) –

    Output layout.

    If set and not empty, the layout must match the dimensionality of the output.

  • preserve (bool, optional, default = False) – Prevents the operator from being removed from the graph even if its outputs are not used.

  • shape (int or list of int or TensorList of int, optional) – Shape of the output data.