Class RandomHorizontalFlip

Inheritance Relationships

Base Type

Class Documentation

class RandomHorizontalFlip : public mindspore::dataset::TensorTransform

Randomly flip the input image horizontally with a given probability.

Public Functions

explicit RandomHorizontalFlip(float prob = 0.5)

Constructor.

Parameters

prob[in] A float representing the probability of flip.

~RandomHorizontalFlip() = default

Destructor.