RunnerConfig
RunnerConfig定义了MindSpore Lite并发推理的配置参数。
Public Member Functions
function |
|---|
init
public boolean init(MSContext msContext)
Configuration parameter initialization for parallel inference.
Parameters
msContext: Context configuration for concurrent inference runtime.
Returns
Whether the initialization is successful.
setWorkerNum
public void setWorkerNum(int workerNum)
The parameter setting of the number of models in parallel inference.
Parameters
workerNum: Set the number of models in the configuration.
getRunnerConfigPtr
public long getRunnerConfigPtr()
Get a pointer to the underlying concurrent inference configuration parameters.
Returns
Low-level concurrent inference configuration parameter pointer.
