RunnerConfig defines the configuration parameters of MindSpore Lite concurrent inference.
function |
---|
boolean init() |
void setWorkerNum() |
void setConfigInfo() |
void setConfigPath() |
void getConfigPath() |
long getRunnerConfigPtr() |
public boolean init()
Configuration parameter initialization for parallel inference.
Returns
Whether the initialization is successful.
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.
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.public void setConfigInfo(String section, HashMap<String, String> config)
Model configuration parameter settings in parallel inference.
Parameters
section
: Configured chapter name.config
: config pair to update.public void setConfigPath(String configPath)
Set the configuration file path in concurrent inference.
Parameters
configPath
: config path.public String getConfigPath()
Get the path to the configuration file set in RunnerConfig.
Returns
config path.
public long getRunnerConfigPtr()
Get a pointer to the underlying concurrent inference configuration parameters.
Returns
Low-level concurrent inference configuration parameter pointer.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。