Skip to content

RandomShift

source

RandomShift(
   pad: int = 4
)


Random shift operation for processing image-based observations.

Args

  • pad (int) : Padding size.

Returns

Augmented images.

Methods:

.forward

source

.forward(
   x: th.Tensor
)