Skip to content

Commit 613f0cd

Browse files
committed
remove fstring
1 parent 1d12cd2 commit 613f0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def convert_image_dtype(image: torch.Tensor, dtype: torch.dtype = torch.float) -
115115
if (image.dtype == torch.float32 and dtype in (torch.int32, torch.int64)) or (
116116
image.dtype == torch.float64 and dtype == torch.int64
117117
):
118-
msg = f"The cast from {image.dtype} to {dtype} cannot be performed safely."
118+
msg = "The cast from {} to {} cannot be performed safely.".format(image.dtype, dtype)
119119
raise RuntimeError(msg)
120120

121121
eps = 1e-3

0 commit comments

Comments
 (0)