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 3b6c670 commit 0036860Copy full SHA for 0036860
torchvision/transforms/transforms.py
@@ -525,8 +525,8 @@ def __call__(self, img):
525
def __repr__(self):
526
interpolate_str = _pil_interpolation_to_str[self.interpolation]
527
format_string = self.__class__.__name__ + '(size={0}'.format(self.size)
528
- format_string += ', scale={0}'.format(round(self.scale, 4))
529
- format_string += ', ratio={0}'.format(round(self.ratio, 4))
+ format_string += ', scale={0}'.format(tuple(round(s, 4) for s in self.scale))
+ format_string += ', ratio={0}'.format(tuple(round(r, 4) for r in self.ratio))
530
format_string += ', interpolation={0})'.format(interpolate_str)
531
return format_string
532
0 commit comments