[docs]@dataclasses.dataclassclassDataLoaderConfig:""" Parameters: dataset: A sequence of configurations each defining a dataset to be loaded. This sequence of datasets will be concatenated. batch_size: Number of samples per batch. num_data_workers: Number of parallel workers to use for data loading. prefetch_factor: how many batches a single data worker will attempt to hold in host memory at a given time. strict_ensemble: Whether to enforce that the datasets to be concatened have the same dimensions and coordinates. """dataset:Sequence[XarrayDataConfig]batch_size:intnum_data_workers:int=0prefetch_factor:Optional[int]=Nonestrict_ensemble:bool=Truedef__post_init__(self):dist=Distributed.get_instance()ifself.batch_size%dist.world_size!=0:raiseValueError("batch_size must be divisible by the number of parallel "f"workers, got {self.batch_size} and {dist.world_size}")