Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ gen_data
Function
gen_data
dali/test/python/operator_1/test_batch_permute.py:53–54 ·
view source on GitHub ↗
(batch_size, type)
Source
from the content-addressed store, hash-verified
51
52
53
def
gen_data(batch_size, type):
54
return
[random_sample().astype(type)
for
_ in range(batch_size)]
55
56
57
def
_test_permute_batch(device, type):
Callers
3
_test_permute_batch
Function · 0.70
_test_permute_batch_fixed
Function · 0.70
_test_permute_batch_out_of_range
Function · 0.70
Calls
1
random_sample
Function · 0.85
Tested by
no test coverage detected