Class PyAdapter

java.lang.Object
ai.djl.serving.wlm.Adapter
ai.djl.serving.wlm.PyAdapter

public class PyAdapter extends Adapter
An overload of Adapter for the python engine.
  • Constructor Details

    • PyAdapter

      protected PyAdapter(String name, String src, Map<String,String> options)
      Constructs an Adapter.
      Parameters:
      name - the adapter name
      src - the adapter src
      options - additional adapter options
  • Method Details

    • registerPredictor

      protected void registerPredictor(ai.djl.inference.Predictor<?,?> predictor)
      Specified by:
      registerPredictor in class Adapter
    • unregisterPredictor

      protected void unregisterPredictor(ai.djl.inference.Predictor<?,?> predictor)
      Specified by:
      unregisterPredictor in class Adapter