From 60219379b4a237b33c3115404694b49d4858b068 Mon Sep 17 00:00:00 2001 From: Kuang Fangjun Date: Thu, 14 Jun 2018 10:38:02 +0800 Subject: [PATCH] fix #530. --- torchvision/transforms/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py index 698dbdfb9d2..fcba9dcd6bd 100644 --- a/torchvision/transforms/transforms.py +++ b/torchvision/transforms/transforms.py @@ -93,7 +93,7 @@ class ToPILImage(object): 3. If the input has 1 channel, the ``mode`` is determined by the data type (i,e, ``int``, ``float``, ``short``). - .. _PIL.Image mode: http://pillow.readthedocs.io/en/3.4.x/handbook/concepts.html#modes + .. _PIL.Image mode: https://pillow.readthedocs.io/en/latest/handbook/concepts.html#concept-modes """ def __init__(self, mode=None): self.mode = mode