Backend-agnostic inference interface: load, predict, save plus model/task descriptors.
More...
#include <ml_model.h>
Backend-agnostic inference interface: load, predict, save plus model/task descriptors.
Definition at line 57 of file ml_model.h.
◆ SPtr
◆ ~MlModel()
| virtual MLLIB::MlModel::~MlModel |
( |
| ) |
|
|
virtualdefault |
◆ load()
| virtual bool MLLIB::MlModel::load |
( |
const QString & | path | ) |
|
|
pure virtual |
Load a model from disk.
- Parameters
-
- Returns
- True if successful.
Implemented in MLLIB::MlOnnxModel.
◆ modelType()
| virtual QString MLLIB::MlModel::modelType |
( |
| ) |
const |
|
pure virtual |
◆ predict()
Run inference on the given input tensor.
- Parameters
-
- Returns
- The prediction result.
Implemented in MLLIB::MlOnnxModel.
◆ save()
| virtual bool MLLIB::MlModel::save |
( |
const QString & | path | ) |
const |
|
pure virtual |
Serialise the model to disk.
- Parameters
-
- Returns
- True if successful.
Implemented in MLLIB::MlOnnxModel.
◆ taskType()
| virtual MlTaskType MLLIB::MlModel::taskType |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: