Class vart::RunnerFactory#

class RunnerFactory#

Factory class for creating Runner instances.

Provides a static method to instantiate Runner objects based on the specified runner type, model path, and optional configuration options.

Public Static Functions

static std::shared_ptr<Runner> create_runner(RunnerType runner_type, const std::string &model_path, const std::unordered_map<std::string, std::any> &options = {})#

Creates and returns a shared pointer to a Runner instance.

This static method initializes a Runner object for the specified runner type, using the provided model path and optional configuration options.

Parameters:
  • runner_type – The type of runner to create (e.g., VAIML).

  • model_path – The file system path to the model to be loaded by the Runner.

  • options – An optional map of additional configuration options, where each option is identified by a string key and can hold a value of any type.

Returns:

std::shared_ptr<Runner> A shared pointer to the created Runner instance.