nvidia.dali.fn.transforms.combine

nvidia.dali.fn.transforms.combine(*inputs, **kwargs)

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.

Supported backends
  • ‘cpu’

Parameters
  • input0 (TensorList) – Input to the operator.

  • input1 (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.