| 13 | { |
| 14 | public: |
| 15 | sample_range(const batch& batch, int64_t begin, int64_t end) |
| 16 | : batch_(&batch), indices_(icm::index_mapping_t<int64_t>::slice({begin, end, 1L})) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | explicit sample_range(const batch& batch) |
| 21 | : batch_(&batch), indices_(icm::index_mapping_t<int64_t>::trivial(batch.size())) |