{ }
Randomly crop image
.
tf.raw_ops.RandomCrop(
image, size, seed=0, seed2=0, name=None
)
size
is a 1-D int64 tensor with 2 elements representing the crop height and
width. The values must be non negative.
This Op picks a random location in image
and crops a height
by width
rectangle from that location. The random location is picked so the cropped
area will fit inside the original image.
Returns | |
---|---|
A Tensor . Has the same type as image .
|