Function tch::vision::dataset::random_crop [−][src]
Expand description
Pad the image using reflections and take some random crops. This expects a 4 dimension NCHW tensor and returns a tensor with an identical shape.