Class MultiModelRunner

Class Documentation

class MultiModelRunner

Public Functions

MultiModelRunner() = default

Constructor of MultiModelRunner.

~MultiModelRunner() = default

Destructor of ModelExecutor.

inline Status Build(const std::string &model_path, const ModelType &model_type, const std::shared_ptr<Context> &model_context = nullptr)

Load and build a multimodelrunner so that it can run on a device.

参数
  • model_path[in] Define the model path.

  • model_type[in] Define The type of model file. Options: ModelType::kMindIR.

  • model_context[in] Define the context used to store options during execution.

返回

Status. kSuccess: build success, kLiteModelRebuild: build model repeatedly, Other: other types of errors.

std::vector<ModelExecutor> GetModelExecutor() const

Get ModelExecutors in thr multimodelrunner.

返回

Vector of ModelExecutor.

inline Status LoadConfig(const std::string &config_path)

Load config file.

参数

config_path[in] config file path.

返回

Status.

inline Status UpdateConfig(const std::string &section, const std::pair<std::string, std::string> &config)

Update config.

参数
  • section[in] define the config section.

  • config[in] define the config will be updated.

返回

Status.