Get batch from collate_fn of Pytorch data loader

Double post from here.