ToPureTensor class torchvision.transforms.v2.ToPureTensor[source] Convert all TVTensors to pure tensors, removing associated metadata (if any). This doesn’t scale or change the values, only the type. transform(inpt: Any, params: dict