MCPcopy Create free account
hub / github.com/modelscope/modelscope / _process_iterator

Method _process_iterator

modelscope/pipelines/base.py:265–267  ·  view source on GitHub ↗
(self, input: Input, *args, **kwargs)

Source from the content-addressed store, hash-verified

263 return {}, {}, pipeline_parameters
264
265 def _process_iterator(self, input: Input, *args, **kwargs):
266 for ele in input:
267 yield self._process_single(ele, *args, **kwargs)
268
269 def _collate_fn(self, data):
270 return collate_fn(data, self.device)

Callers 1

__call__Method · 0.95

Calls 1

_process_singleMethod · 0.95

Tested by

no test coverage detected