MCPcopy 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
131def 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_cross_device_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected