BatchNormalize (mean, std[, inplace, dtype, ...])
|
Applies the Normalize transform to a batch of images. |
BatchRandomCrop (size[, padding, dtype, device])
|
Applies the RandomCrop transform to a batch of images. Args: size (int): Desired output size of the crop. padding (int, optional): Optional padding on each border of the image. Default is None, i.e no padding. dtype (torch.dtype,optional): The data type of tensors to which the transform will be applied. device (torch.device,optional): The device of tensors to which the transform will be applied. |