Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ batch_equal
Function
batch_equal
dali/test/python/experimental_mode/test_batch.py:131–137 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
129
130
131
def
batch_equal(a, b):
132
if
len(a) != len(b):
133
return
False
134
for
x, y in zip(a, b):
135
if
not np.array_equal(x, y):
136
return
False
137
return
True
138
139
140
@eval_modes()
Callers
2
test_batch_construction_with_conversion
Function · 0.85
test_cross_device_copy
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected