fix typos in datamodule (#8949)

Co-authored-by: Knarik Mheryan <knarik@codics.am>
This commit is contained in:
Knarik1 2021-08-24 15:12:07 +04:00 committed by GitHub
parent dfae7342cc
commit 6f3cb1a6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class LightningDataModule(CheckpointHooks, DataHooks, HyperparametersMixin):
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.