(self, data, batch_size, shuffle=True)
| 334 | "Go through the text data by order of src length with a bit of randomness. From fastai repo." |
| 335 | |
| 336 | def __init__(self, data, batch_size, shuffle=True): |
| 337 | self.data, self.bs, self.shuffle = data, batch_size, shuffle |
| 338 | |
| 339 | def __len__(self) -> int: |
| 340 | return len(self.data) |