We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aee5ed commit f5a2d66Copy full SHA for f5a2d66
torchvision/transforms/v2/_deprecated.py
@@ -41,7 +41,7 @@ class ToTensor(Transform):
41
def __init__(self) -> None:
42
warnings.warn(
43
"The transform `ToTensor()` is deprecated and will be removed in a future release. "
44
- "Instead, please use `v2.Compose([v2.ToImage(), v2.ToDtype(torch.float32, scale=True)])`."
+ "Instead, please use `v2.Compose([v2.ToImage(), v2.ToDtype(torch.float32, scale=True)])`. "
45
"Output is equivalent up to float precision."
46
)
47
super().__init__()
0 commit comments