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

Function get_data

dali/test/python/test_dali_variable_batch_size.py:784–793  ·  view source on GitHub ↗
(batch_size)

Source from the content-addressed store, hash-verified

782 return pipe
783
784 def get_data(batch_size):
785 test_data_shape = [random.randint(5, 21), random.randint(5, 21), 3]
786 data1 = [
787 np.random.randint(0, 255, size=test_data_shape, dtype=np.uint8)
788 for _ in range(batch_size)
789 ]
790 data2 = [
791 np.random.randint(1, 4, size=test_data_shape, dtype=np.uint8) for _ in range(batch_size)
792 ]
793 return (data1, data2)
794
795 input_data = [get_data(random.randint(5, 31)) for _ in range(13)]
796 check_pipeline(input_data, pipeline_fn=pipe)

Callers 7

test_math_opsFunction · 0.70
test_box_encoder_opFunction · 0.70
test_remapFunction · 0.70
test_random_bbox_crop_opFunction · 0.70
test_ssd_random_crop_opFunction · 0.70
test_cast_likeFunction · 0.70
test_io_file_readFunction · 0.70

Calls 2

appendMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected