Package ai.djl.engine.rpc
Class RpcEngine
java.lang.Object
ai.djl.engine.Engine
ai.djl.engine.rpc.RpcEngine
The
RpcEngine is a client side implementation for remote model server.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the alternativeengineif available.Returns the name of the Engine.intgetRank()Return the rank of theEngine.Returns the version of the deep learning engine.booleanhasCapability(String capability) Returns whether the engine has the specified capability.Creates a new top-levelNDManager.newBaseManager(Device device) Constructs a new model.Methods inherited from class ai.djl.engine.Engine
debugEnvironment, defaultDevice, getAllEngines, getDefaultEngineName, getDevices, getDevices, getDjlVersion, getEngine, getGpuCount, getInstance, getSeed, hasEngine, newGradientCollector, newParameterServer, newSymbolBlock, registerEngine, setRandomSeed, toString
-
Field Details
-
ENGINE_NAME
- See Also:
-
-
Constructor Details
-
RpcEngine
public RpcEngine()
-
-
Method Details
-
getAlternativeEngine
Returns the alternativeengineif available.- Specified by:
getAlternativeEnginein classEngine- Returns:
- the alternative
engine
-
getEngineName
Returns the name of the Engine.- Specified by:
getEngineNamein classEngine- Returns:
- the name of the engine
-
getRank
public int getRank()Return the rank of theEngine. -
getVersion
Returns the version of the deep learning engine.- Specified by:
getVersionin classEngine- Returns:
- the version number of the deep learning engine
-
hasCapability
Returns whether the engine has the specified capability.- Specified by:
hasCapabilityin classEngine- Parameters:
capability- the capability to retrieve- Returns:
trueif the engine has the specified capability
-
newModel
Constructs a new model. -
newBaseManager
- Specified by:
newBaseManagerin classEngine- Returns:
- a new top-level
NDManager
-
newBaseManager
- Specified by:
newBaseManagerin classEngine- Parameters:
device- the defaultDevice- Returns:
- a new top-level
NDManager
-