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

Function arg_data_node

dali/test/python/sequences_test_utils.py:175–182  ·  view source on GitHub ↗
(arg_data: ArgData)

Source from the content-addressed store, hash-verified

173
174
175def arg_data_node(arg_data: ArgData):
176 node = fn.external_source(dummy_source(arg_data.data), layout=arg_data.desc.layout)
177 if arg_data.desc.dest_device == "gpu":
178 node = node.gpu()
179 expandable_prefix = arg_data.desc.expandable_prefix
180 if expandable_prefix and expandable_prefix[0] == "F":
181 node = fn.per_frame(node)
182 return node
183
184
185def as_batch(tensor):

Callers 1

pipelineFunction · 0.85

Calls 2

dummy_sourceFunction · 0.70
gpuMethod · 0.45

Tested by

no test coverage detected