def build_dataloader_from_dataset(self, dataset, **kwargs):
    'Builds a dataloader from the provided dataset\n\n        Args:\n            dataset: A ClassyDataset\n            kwargs: Additional kwargs to pass during dataloader construction for\n                derived classes\n        '
    return dataset.iterator(phase_type=self.phase_type, current_phase_id=(self.train_phase_idx if self.train else 0), pin_memory=(self.use_gpu and (torch.cuda.device_count() > 1)), multiprocessing_context=mp.get_context(self.dataloader_mp_context), **kwargs)
Builds a dataloader from the provided dataset

Args:
    dataset: A ClassyDataset
    kwargs: Additional kwargs to pass during dataloader construction for
        derived classes
def build_dataloader_from_dataset(self, dataset, **kwargs):
    'Builds a dataloader from the provided dataset\n\n        Args:\n            dataset: A ClassyDataset\n            kwargs: Additional kwargs to pass during dataloader construction for\n                derived classes\n        '
    return dataset.iterator(phase_type=self.phase_type, current_phase_id=(self.train_phase_idx if self.train else 0), pin_memory=(self.use_gpu and (torch.cuda.device_count() > 1)), multiprocessing_context=mp.get_context(self.dataloader_mp_context), **kwargs)