pub fn random_flip(t: &Tensor) -> Tensor
Expand description

Randomly applies horizontal flips This expects a 4 dimension NCHW tensor and returns a tensor with an identical shape.