MCPcopy Create free account
hub / github.com/NVIDIA/DALI / SampleInfo

Class SampleInfo

dali/python/nvidia/dali/types.py:697–711  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

695
696
697class 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
714class BatchInfo:

Callers 10

__getitem__Method · 0.90
test_pool_one_taskMethod · 0.90
test_pool_multi_taskMethod · 0.90
test_pool_many_ctxsMethod · 0.90
__call__Method · 0.90
gen_batchFunction · 0.90

Calls

no outgoing calls

Tested by 9

test_pool_one_taskMethod · 0.72
test_pool_multi_taskMethod · 0.72
test_pool_many_ctxsMethod · 0.72
__call__Method · 0.72
gen_batchFunction · 0.72