def from_cli(self, cli_args: Sequence[str]) -> Iterator[MultiFileTask]: for inputs in parse_cli_inputs(cli_args, self.input_names): yield InferenceTask( context=InferenceContext(cli_args=cli_args), data=tuple(_pipe(i) for i in inputs), )
def from_cli(self, cli_args: Sequence[str]) -> Iterator[MultiFileTask]: for inputs in parse_cli_inputs(cli_args, self.input_names): yield InferenceTask(cli_args=cli_args, data=inputs)
def from_cli(self, cli_args: Sequence[str]) -> Iterator[MultiFileTask]: input_, input_file = parse_cli_inputs(cli_args, self.input_names) for t in self.from_inference_job(input_=input_, input_file=input_file): t.cli_args = cli_args yield t