Unverified Commit 7aef1153 authored by nps1ngh's avatar nps1ngh Committed by GitHub
Browse files

fix `repr` of `transforms.RandomResizedCrop` (#7048)

parent 9851a69f
...@@ -967,7 +967,7 @@ class RandomResizedCrop(torch.nn.Module): ...@@ -967,7 +967,7 @@ class RandomResizedCrop(torch.nn.Module):
format_string = self.__class__.__name__ + f"(size={self.size}" format_string = self.__class__.__name__ + f"(size={self.size}"
format_string += f", scale={tuple(round(s, 4) for s in self.scale)}" format_string += f", scale={tuple(round(s, 4) for s in self.scale)}"
format_string += f", ratio={tuple(round(r, 4) for r in self.ratio)}" format_string += f", ratio={tuple(round(r, 4) for r in self.ratio)}"
format_string += f", interpolation={interpolate_str})" format_string += f", interpolation={interpolate_str}"
format_string += f", antialias={self.antialias})" format_string += f", antialias={self.antialias})"
return format_string return format_string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment