public final class WlmConfigManager
extends java.lang.Object
WorkLoadManager.| Constructor and Description |
|---|
WlmConfigManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultWorkers(ai.djl.ndarray.NDManager manager,
java.lang.String deviceName,
int target)
Returns the default number of workers for a new registered model.
|
static WlmConfigManager |
getInstance()
Returns the singleton
ConfigManager instance. |
boolean |
isDebug()
Returns if debug is enabled.
|
WlmConfigManager |
setDebug(boolean debug)
Sets debug mode.
|
public static WlmConfigManager getInstance()
ConfigManager instance.ConfigManager instancepublic boolean isDebug()
true if debug is enabledpublic WlmConfigManager setDebug(boolean debug)
debug - true to enable debug mode and false to disablepublic int getDefaultWorkers(ai.djl.ndarray.NDManager manager,
java.lang.String deviceName,
int target)
manager - the NDManager the model usesdeviceName - the device that model loaded ontarget - the target number of worker