The ModelLoader class is a definition of a loader that uploads the model to the specified backend.
More...
#include <knp/framework/model_loader.h>
The ModelLoader class is a definition of a loader that uploads the model to the specified backend.
Definition at line 45 of file model_loader.h.
◆ InputChannelMap
◆ ModelLoader()
Model loader constructor.
- Parameters
-
backend | pointer to backend to which you want to load the model. |
i_map | input channel map. |
Definition at line 59 of file model_loader.h.
◆ get_backend()
std::shared_ptr< core::Backend > knp::framework::ModelLoader::get_backend |
( |
| ) |
|
|
inline |
Get pointer to backend object.
- Returns
- shared pointer to
Backend
object.
Definition at line 129 of file model_loader.h.
◆ get_input_channel() [1/2]
Get reference to input channel by its UID.
- Parameters
-
- Returns
- reference to input channel.
- Exceptions
-
std::runtime_error | if no channel with the given UID exists. |
◆ get_input_channel() [2/2]
Get reference to input channel by its UID.
- Note
- Constant method.
- Parameters
-
- Returns
- reference to input channel.
- Exceptions
-
std::runtime_error | if no channel with the given UID exists. |
◆ get_inputs()
auto & knp::framework::ModelLoader::get_inputs |
( |
| ) |
|
|
inlinenoexcept |
Get input channels.
- Returns
- tuple of input channel vectors.
Definition at line 117 of file model_loader.h.
◆ get_output_channel() [1/2]
Get reference to output channel.
- Parameters
-
- Returns
- reference to output channel.
- Exceptions
-
std::runtime_error | if there is no channel with a given UID. |
◆ get_output_channel() [2/2]
Get reference to output channel.
- Note
- Constant method.
- Parameters
-
- Returns
- reference to output channel.
- Exceptions
-
std::runtime_error | if there is no channel with a given UID. |
◆ get_outputs()
auto & knp::framework::ModelLoader::get_outputs |
( |
| ) |
|
|
inlinenoexcept |
Get output channels.
- Returns
- tuple of output channel vectors.
Definition at line 123 of file model_loader.h.
◆ load()
Write model to backend.
- Parameters
-
The documentation for this class was generated from the following file: