Skip to content

Commit be47d7c

Browse files
author
Dbhasin1
committed
remove unecessary variable in resources
1 parent acbf3f5 commit be47d7c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

torchvision/prototype/datasets/_builtin/eurosat.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ def _make_info(self) -> DatasetInfo:
2626
)
2727

2828
def resources(self, config: DatasetConfig) -> List[OnlineResource]:
29-
data = HttpResource(
30-
"https://madm.dfki.de/files/sentinel/EuroSAT.zip",
31-
sha256="8ebea626349354c5328b142b96d0430e647051f26efc2dc974c843f25ecf70bd",
32-
)
33-
return [data]
29+
return [
30+
HttpResource(
31+
"https://madm.dfki.de/files/sentinel/EuroSAT.zip",
32+
sha256="8ebea626349354c5328b142b96d0430e647051f26efc2dc974c843f25ecf70bd",
33+
)
34+
]
3435

3536
def _prepare_sample(self, data: Tuple[str, Any]) -> Dict[str, Any]:
3637
path, buffer = data

0 commit comments

Comments
 (0)