nvidia.dali.fn.element_extract — NVIDIA DALI (original) (raw)

nvidia.dali.fn.element_extract(__input, /, *, bytes_per_sample_hint=[0], element_map, preserve=False, device=None, name=None)#

Extracts one or more elements from input sequence.

The outputs are slices in the first (outermost) dimension of the input. There are as many outputs as the elements provided in the element_map.

For example, for element_map = [2, 0, 3] there will be three outputs, containing 2nd, 0th and 3rd element of the input sequences respectively.

The input layout, if provided, must begin with F dimension. The outputs will have one less dimension than the input, that is for FHWC inputs, the outputs will be HWC elements.

This operator expects sequence inputs.

Supported backends

Parameters:

__input (TensorList) – Input to the operator.

Keyword Arguments: