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

Function get_data

dali/test/python/test_dali_tf_plugin_cpu_only.py:35–47  ·  view source on GitHub ↗
(batch_size, value)

Source from the content-addressed store, hash-verified

33
34
35def get_data(batch_size, value):
36 pipe = get_dali_pipe(batch_size=batch_size, device_id=None, num_threads=1, value=value)
37 daliop = dali_tf.DALIIterator()
38 out = []
39 with tf.device("/cpu"):
40 data = daliop(
41 pipeline=pipe,
42 shapes=[batch_size],
43 dtypes=[tf.int32],
44 device_id=None,
45 )
46 out.append(data)
47 return [out]
48
49
50def test_dali_tf_op_cpu_only():

Callers 1

test_dali_tf_op_cpu_onlyFunction · 0.70

Calls 3

get_dali_pipeFunction · 0.70
deviceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected