Skip to content

Commit 6f3cb1a

Browse files
Knarik1Knarik Mheryan
and
Knarik Mheryan
authored
fix typos in datamodule (#8949)
Co-authored-by: Knarik Mheryan <[email protected]>
1 parent dfae734 commit 6f3cb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/core/datamodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def dims(self, d):
184184
rank_zero_deprecation("DataModule property `dims` was deprecated in v1.5 and will be removed in v1.7.")
185185
self._dims = d
186186

187-
def size(self, dim=None) -> Union[Tuple, int]:
187+
def size(self, dim=None) -> Union[Tuple, List[Tuple]]:
188188
"""
189189
Return the dimension of each input either as a tuple or list of tuples. You can index this
190190
just as you would with a torch tensor.

0 commit comments

Comments
 (0)