(self, index)
| 186 | return len(self.wrapped_data) |
| 187 | |
| 188 | def __getitem__(self, index): |
| 189 | # rng = random.Random(index) |
| 190 | # rng = np.random.RandomState( |
| 191 | # seed=[rng.randint(0, 2 ** 32 - 1) for _ in range(16)] |
| 192 | # ) |
| 193 | # index = rng.randint(len(self.wrapped_data)) |
| 194 | return self.wrapped_data[self.index_mapping[index]] |
| 195 | |
| 196 | |
| 197 | class BlockedSplitDataset(Dataset): |
nothing calls this directly
no outgoing calls
no test coverage detected