Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ sample_id
Function
sample_id
dali/test/python/reader/test_caffe.py:125–126 ·
view source on GitHub ↗
(sample)
Source
from the content-addressed store, hash-verified
123
124
# This should return some unique number for each sample
125
def
sample_id(sample):
126
return
sample.as_array().sum()
127
128
return
{sample_id(p.run()[0])
for
_ in range(size)}
129
Callers
1
get_data
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected