public class PpPredictor<I,O>
extends ai.djl.inference.Predictor<I,O>
PpPredictor is special implementation of Predictor for PaddlePaddle.
When creating a new DlrPredictor, we clone Paddle predictor handle to workaround the issue.
| Constructor and Description |
|---|
PpPredictor(ai.djl.Model model,
PaddlePredictor predictor,
ai.djl.translate.Translator<I,O> translator,
ai.djl.Device device)
Creates a new instance of
PaddlePredictor. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
public PpPredictor(ai.djl.Model model,
PaddlePredictor predictor,
ai.djl.translate.Translator<I,O> translator,
ai.djl.Device device)
PaddlePredictor.model - the model on which the predictions are basedpredictor - the C++ Paddle Predictor handletranslator - the translator to be useddevice - the device to be used