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

Function compare

dali/test/python/test_nvjpeg_cache.py:29–36  ·  view source on GitHub ↗
(tl1, tl2)

Source from the content-addressed store, hash-verified

27
28
29def compare(tl1, tl2):
30 tl1_cpu = tl1.as_cpu()
31 tl2_cpu = tl2.as_cpu()
32 assert len(tl1_cpu) == len(tl2_cpu)
33 for i in range(0, len(tl1_cpu)):
34 assert_array_equal(
35 tl1_cpu.at(i), tl2_cpu.at(i), f"cached and non-cached images differ for sample #{i}"
36 )
37
38
39class HybridDecoderPipeline(Pipeline):

Callers 7

test_nvjpeg_cachedFunction · 0.70
common_caseFunction · 0.70
operator<Method · 0.50
operator>Method · 0.50
operator<=Method · 0.50
operator>=Method · 0.50
operator==Method · 0.50

Calls 1

atMethod · 0.45

Tested by

no test coverage detected