Rotate

class dragon.vm.dali.ops.Rotate(
  fill_value=0,
  interp_type='linear',
  keep_size=True,
  **kwargs
)[source]

Rotate the image.

Examples:

rotate = dali.ops.Rotate()
y = rotate(inputs['x'], angle=30)

__new__

static Rotate.__new__(
  cls,
  fill_value=0,
  interp_type='linear',
  keep_size=True,
  **kwargs
)[source]

Create a Rotate operator.

Parameters:
  • fill_value (number, optional) – The value to fill the empty regions.
  • interp_type (str, optional, default='linear') – The interpolation method.
  • keep_size (bool, optional, default=True) – Whether to keep the original image size.
Returns:

nvidia.dali.ops.Rotate – The operator.