diff --git a/deepmd/pt/utils/dataloader.py b/deepmd/pt/utils/dataloader.py index 032fa34b73..0b439a84e9 100644 --- a/deepmd/pt/utils/dataloader.py +++ b/deepmd/pt/utils/dataloader.py @@ -102,7 +102,7 @@ def construct_dataset(system): with Pool(os.cpu_count()) as pool: self.systems = pool.map(construct_dataset, systems) else: - self.systems = [None] * len(systems) # type: ignore + self.systems = [None] * len(systems) # type: ignore if dist.is_initialized(): dist.broadcast_object_list(self.systems) assert self.systems[-1] is not None