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

Class TestPipeline

dali/test/python/test_pipeline.py:1173–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171
1172def test_python_formats():
1173 class TestPipeline(Pipeline):
1174 def __init__(self, batch_size, num_threads, device_id, num_gpus, test_array):
1175 super(TestPipeline, self).__init__(batch_size, num_threads, device_id)
1176 self.input_data = ops.ExternalSource()
1177 self.test_array = test_array
1178
1179 def define_graph(self):
1180 self.data = self.input_data()
1181 return self.data
1182
1183 def iter_setup(self):
1184 self.feed_input(self.data, self.test_array)
1185
1186 for t in [
1187 np.bool_,

Callers 4

test_python_formatsFunction · 0.70
test_api_check1Function · 0.70
test_api_check2Function · 0.70
test_executor_metaFunction · 0.70

Calls

no outgoing calls

Tested by 4

test_python_formatsFunction · 0.56
test_api_check1Function · 0.56
test_api_check2Function · 0.56
test_executor_metaFunction · 0.56