ray_shuffling_data_loader
ray_shuffling_data_loader copied to clipboard
[Testing] Add unit tests.
Add unit tests for the following:
- Shuffler (shuffle.py)
BatchQueue(batch_queue.py)ShufflingDataset(dataset.py)TorchShufflingDataset(torch_dataset.py)
Implementation Notes
ShufflingDatasetandTorchShufflingDatasettesting could initially be as simple as running the example in the main block ofdataset.pyandtorch_dataset.py, respectively, although these don't do much to assert correctness of the yielded batches.- See these tests for easily portable examples for testing
BatchQueue.
I'll start with setting up CI and running examples, and then will add unit tests that also assert correctness.
- [x] Shuffler (#22)
- [x] BatchQueue (#21)
- [x] ShufflingDataset (#19, #20)
- [x] TorchShufflingDataset (#19, #20)