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

Class SourceClass

dali/test/python/test_external_source_dali.py:864–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862 return np.array([sample_info.idx_in_epoch])
863
864 class SourceClass:
865 def __init__(self, offset):
866 self.offset = offset
867
868 @code_smashing_decorator
869 def __call__(self, sample_info):
870 return np.array([sample_info.idx_in_epoch + self.offset])
871
872 class SourceClassWithoutInfo:
873 def __init__(self, offset):

Callers 1

test_pipeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_pipeFunction · 0.68