nvidia.dali.fn.transforms.combine

nvidia.dali.fn.transforms.combine(__input_0, __input_1, /, *__input_, bytes_per_sample_hint=[0], preserve=False, reverse_order=False, seed=-1, device=None, name=None)

Combines two or more affine transforms.

By default, the transforms are combined such that applying the resulting transform to a point is equivalent to

applying the input transforms in the order as listed.

Example: combining [T1, T2, T3] is equivalent to T3(T2(T1(…))) for default order and equivalent to T1(T2(T3(…)))

for reversed order.

This operator allows sequence inputs.

Supported backends
  • ‘cpu’

Parameters:
  • __input_0 (TensorList) – Input to the operator.

  • __input_1 (TensorList) – Input to the operator.

  • __input_[2..98] (TensorList, optional) – This function accepts up to 97 optional positional inputs

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.

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

  • reverse_order (bool, optional, default = False) –

    Determines the order when combining affine transforms.

    If set to False (default), the operator’s affine transform will be applied to the input transform. If set to True, the input transform will be applied to the operator’s transform.

    If there’s no input, this argument is ignored.

  • seed (int, optional, default = -1) –

    Random seed.

    If not provided, it will be populated based on the global seed of the pipeline.