(self, filepath)
| 46 | |
| 47 | class LMPackDataset(torch.utils.data.Dataset): |
| 48 | def __init__(self, filepath): |
| 49 | self.input_ids, self.attention_masks, self.labels, self.weights, self.nums = self.process_data(filepath) |
| 50 | self.num_gpus = torch.cuda.device_count() |
| 51 | |
| 52 | def process_data(self, filepath): |
| 53 | input_ids = torch.from_numpy(np.load(os.path.join(filepath, 'inputs_pack.npy'))) |
nothing calls this directly
no test coverage detected