nvidia.dali.fn.coord_flip#
- nvidia.dali.fn.coord_flip(__input, /, *, bytes_per_sample_hint=[0], center_x=0.5, center_y=0.5, center_z=0.5, flip_x=1, flip_y=0, flip_z=0, layout='', preserve=False, seed=-1, device=None, name=None)#
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.