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

Function check_deserialization

dali/test/python/test_deserialization.py:32–36  ·  view source on GitHub ↗
(batch_size, num_threads, shape)

Source from the content-addressed store, hash-verified

30
31
32def check_deserialization(batch_size, num_threads, shape):
33 ref_pipe = TestPipeline(batch_size=batch_size, num_threads=num_threads, shape=shape)
34 serialized = ref_pipe.serialize()
35 test_pipe = Pipeline.deserialize(serialized)
36 test_utils.compare_pipelines(ref_pipe, test_pipe, batch_size=batch_size, N_iterations=3)
37
38
39def check_deserialization_with_params(batch_size, num_threads, shape):

Callers

nothing calls this directly

Calls 3

TestPipelineClass · 0.70
serializeMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected