Skip to content
Snippets Groups Projects
Commit 690bd155 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data.datamodule] Fix warning and object setup

parent 21fc141d
No related branches found
No related tags found
1 merge request!6Making use of LightningDataModule and simplification of data loading
......@@ -528,11 +528,11 @@ class ConcatDataModule(lightning.LightningDataModule):
self.parallel = parallel # immutable, otherwise would need to call
self.pin_memory = (
torch.cuda.is_available() or torch.backends.mps.is_available()
torch.cuda.is_available() or torch.backends.mps.is_available() # type: ignore
) # should only be true if GPU available and using it
# datasets that have been setup() for the current stage
self._datasets: CachingDataModule.DatasetDictionary = {}
self._datasets: ConcatDataModule.DatasetDictionary = {}
@property
def parallel(self) -> int:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment