Package ai.djl.engine
Interface EngineProvider
-
public interface EngineProviderTheEngineProviderinstance manufactures anEngineinstance, which is available in the system.At initialization time, the
ServiceLoaderwill search forEngineProviderimplementations available in the class path.Engineis designed as a collection of singletons.Engine.getInstance()will return the default Engine, which is the first one found in the classpath. Many of the standard APIs will rely on this default Engine instance such as when creating aNDManagerorModel. However, you can directly get a specific Engine instance (e.g.MxEngine) by callingEngine.getEngine(String).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnginegetEngine()Returns the instance of theEngineclass EngineProvider should bind to.java.lang.StringgetEngineName()Returns the name of theEngine.intgetEngineRank()Returns the rank of theEngine.
-