Skip to content

Commit 0791dfc

Browse files
committed
isdir -> is_dir
1 parent 53ad2c9 commit 0791dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/datasets/flowers102.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def extra_repr(self) -> str:
9292
return f"split={self._split}"
9393

9494
def _check_integrity(self):
95-
if not (self._images_folder.exists() and self._images_folder.isdir()):
95+
if not (self._images_folder.exists() and self._images_folder.is_dir()):
9696
return False
9797

9898
for id in ["label", "setid"]:

0 commit comments

Comments
 (0)