Class MultiModelRunner
Defined in File multi_model_runner.h
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.
- Parameters
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.
- Returns
Status. kSuccess: build success, kLiteModelRebuild: build model repeatedly, Other: other types of errors.
-
std::vector<ModelExecutor> GetModelExecutor() const
Get ModelExecutors in thr multimodelrunner.
- Returns
Vector of ModelExecutor.
-
inline Status LoadConfig(const std::string &config_path)
Load config file.
- Parameters
config_path – [in] config file path.
- Returns
Status.
-
inline Status UpdateConfig(const std::string §ion, const std::pair<std::string, std::string> &config)
Update config.
- Parameters
section – [in] define the config section.
config – [in] define the config will be updated.
- Returns
Status.
-
MultiModelRunner() = default