Shortcuts

convert_image_dtype

class torchvision.transforms.v2.functional.convert_image_dtype(image: Tensor, dtype: dtype = torch.float32)[source]

[已弃用] 请改用 to_dtype()。