334 Star 1.5K Fork 864

MindSpore / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runner_config.md 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
俞涵 提交于 2023-01-29 16:21 . add mindquantum and modify url

RunnerConfig

RunnerConfig defines the configuration parameters of MindSpore Lite concurrent inference.

Public Member Functions

function
boolean init()
void setWorkerNum()
void setConfigInfo()
void setConfigPath()
void getConfigPath()
long getRunnerConfigPtr()

init

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.

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.

setConfigInfo

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.

setConfigPath

public void setConfigPath(String configPath)

Set the configuration file path in concurrent inference.

  • Parameters

    • configPath: config path.

getConfigPath

public String getConfigPath()

Get the path to the configuration file set in RunnerConfig.

  • Returns

    config path.

getRunnerConfigPtr

public long getRunnerConfigPtr()

Get a pointer to the underlying concurrent inference configuration parameters.

  • Returns

    Low-level concurrent inference configuration parameter pointer.

1
https://gitee.com/mindspore/docs.git
git@gitee.com:mindspore/docs.git
mindspore
docs
docs
r2.0.0-alpha

搜索帮助