Describes the indices of a sample requested from :meth:`nvidia.dali.fn.external_source` :ivar idx_in_epoch: 0-based index of the sample within epoch :ivar idx_in_batch: 0-based index of the sample within batch :ivar iteration: number of current batch within epoch :ivar epoch
| 695 | |
| 696 | |
| 697 | class SampleInfo: |
| 698 | """ |
| 699 | Describes the indices of a sample requested from :meth:`nvidia.dali.fn.external_source` |
| 700 | |
| 701 | :ivar idx_in_epoch: 0-based index of the sample within epoch |
| 702 | :ivar idx_in_batch: 0-based index of the sample within batch |
| 703 | :ivar iteration: number of current batch within epoch |
| 704 | :ivar epoch_idx: number of current epoch |
| 705 | """ |
| 706 | |
| 707 | def __init__(self, idx_in_epoch, idx_in_batch, iteration, epoch_idx): |
| 708 | self.idx_in_epoch = idx_in_epoch |
| 709 | self.idx_in_batch = idx_in_batch |
| 710 | self.iteration = iteration |
| 711 | self.epoch_idx = epoch_idx |
| 712 | |
| 713 | |
| 714 | class BatchInfo: |
no outgoing calls