data-attribute-recommendation-python-sdk icon indicating copy to clipboard operation
data-attribute-recommendation-python-sdk copied to clipboard

InferenceClient: provide generator-based bulk inference

Open mhaas opened this issue 5 years ago • 0 comments

The current implementation will try to perform inference for all chunks. If an exception occurs, the progress is lost.

By yielding the individual chunks, the caller can be in charge of error handling.

We can either change the existing API or introduce a separate method (and implement do_bulk_inference using the new method).

See also #62

mhaas avatar Aug 05 '20 16:08 mhaas