t
transforms.ToTensor
Software / AppMentioned in 1 video
A torchvision transform that converts a PIL Image or NumPy ndarray (H x W x C) in the range [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0].
A torchvision transform that converts a PIL Image or NumPy ndarray (H x W x C) in the range [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0].