| 1171 | |
| 1172 | def 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_, |
no outgoing calls