Skip to content

Commit

Permalink
remove fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Jun 11, 2020
1 parent 1d12cd2 commit 613f0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/transforms/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def convert_image_dtype(image: torch.Tensor, dtype: torch.dtype = torch.float) -
if (image.dtype == torch.float32 and dtype in (torch.int32, torch.int64)) or (
image.dtype == torch.float64 and dtype == torch.int64
):
msg = f"The cast from {image.dtype} to {dtype} cannot be performed safely."
msg = "The cast from {} to {} cannot be performed safely.".format(image.dtype, dtype)
raise RuntimeError(msg)

eps = 1e-3
Expand Down

0 comments on commit 613f0cd

Please sign in to comment.