Function tch::vision::dataset::random_flip
source · 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.