Closed marcromeyn closed 1 year ago
Some tests in CPU tests seem to be failing (sample run) related to dask and/or dlpack, e.g.,
E ValueError: Metadata inference failed in `encode_df`.
E
E You have supplied a custom function and Dask is unable to
E determine the type of output that that function returns.
E
E To resolve this please provide a meta= keyword.
E The docstring of the Dask function you ran should have more information.
E
E Original error is below:
E ------------------------
E BufferError('DLPack only supports signed/unsigned integers, float and complex dtypes.')
Goals :soccer:
This PR introduces the
Encoder
andPredictor
classes, to add batch-prediction capabilities in the PyTorch backend.Implementation Details :construction:
Encoder
The Encoder is meant to be used for things like embedding extraction.
Predictor
On the other hand, the Predictor class, will return both the original input data and the corresponding predictions in the output-DF.