I don’t think the ToTensor transformation is problematic, but the transformation to a uint8 image in ToPILImage() if your use case fits my previous description.
How did you create these floating point images and what do the values represent?