From 20d84119401103ba600fda60bf959341bc3c8c62 Mon Sep 17 00:00:00 2001 From: Knarik Mheryan Date: Tue, 17 Aug 2021 10:49:10 +0400 Subject: [PATCH] fix typos in datamodule --- pytorch_lightning/core/datamodule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/core/datamodule.py b/pytorch_lightning/core/datamodule.py index 770745b322d7a..e2ba05eee31d5 100644 --- a/pytorch_lightning/core/datamodule.py +++ b/pytorch_lightning/core/datamodule.py @@ -184,7 +184,7 @@ def dims(self, d): rank_zero_deprecation("DataModule property `dims` was deprecated in v1.5 and will be removed in v1.7.") self._dims = d - def size(self, dim=None) -> Union[Tuple, int]: + def size(self, dim=None) -> Union[Tuple, List[Tuple]]: """ Return the dimension of each input either as a tuple or list of tuples. You can index this just as you would with a torch tensor.