nvidia.dali.fn.coord_flip

nvidia.dali.fn.coord_flip(*inputs, **kwargs)

Transforms vectors or points by flipping (reflecting) their coordinates with respect to a given center.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:

input (TensorList) – Input to the operator.

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.

  • center_x (float or TensorList of float, optional, default = 0.5) – Flip center in the horizontal axis.

  • center_y (float or TensorList of float, optional, default = 0.5) – Flip center in the vertical axis.

  • center_z (float or TensorList of float, optional, default = 0.5) – Flip center in the depthwise axis.

  • flip_x (int or TensorList of int, optional, default = 1) – Flip the horizontal (x) coordinate.

  • flip_y (int or TensorList of int, optional, default = 0) – Flip the vertical (y) coordinate.

  • flip_z (int or TensorList of int, optional, default = 0) – Flip the depthwise (z) coordinate.

  • layout (layout str, optional, default = ‘’) –

    Determines the order of coordinates in the input.

    The string should consist of the following characters:

    • ”x” (horizontal coordinate),

    • ”y” (vertical coordinate),

    • ”z” (depthwise coordinate),

    Note

    If left empty, depending on the number of dimensions, the “x”, “xy”, or “xyz” values are assumed.

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

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

    Random seed.

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