class final
#include <model.hpp>
ModelImpl Implementation of the Model interface for TensorFlow Lite models.
Contents
Base classes
- class edge::Model
- A base class for machine learning models.
Constructors, destructors, conversion operators
Public functions
- auto operator=(const ModelImpl&) -> ModelImpl & deleted
- auto operator=(ModelImpl&&) -> ModelImpl & deleted
- auto loadModel(const std::filesystem::path& modelPath) -> STATUS final
- Loads the TensorFlow Lite model from the specified path.
- auto loadModel(const nonstd::span<uint8_t>& modelBuffer) -> STATUS final
- Loads the TensorFlow Lite model from the specified buffer.
- auto applyDelegate(const DELEGATE& delegate) -> STATUS final
- Applies a delegate to the TensorFlow Lite interpreter.
- auto execute() -> STATUS final
- Executes the TensorFlow Lite model.
Function documentation
auto edge:: tflite:: ModelImpl:: loadModel(const std::filesystem::path& modelPath) -> STATUS final
Loads the TensorFlow Lite model from the specified path.
Parameters | |
---|---|
modelPath | The path to the TensorFlow Lite model file. |
Returns | STATUS Returns a status indicating whether the model was successfully loaded or not. |
This function loads a TensorFlow Lite model from the specified file path. The model file should be in the TensorFlow Lite format.
auto edge:: tflite:: ModelImpl:: loadModel(const nonstd::span<uint8_t>& modelBuffer) -> STATUS final
Loads the TensorFlow Lite model from the specified buffer.
Parameters | |
---|---|
modelBuffer | The buffer containing the TensorFlow Lite model. |
Returns | STATUS Returns a status indicating whether the model was successfully loaded or not. |
This function loads a TensorFlow Lite model from the provided buffer. The buffer should contain the raw data of the TensorFlow Lite model.
auto edge:: tflite:: ModelImpl:: applyDelegate(const DELEGATE& delegate) -> STATUS final
Applies a delegate to the TensorFlow Lite interpreter.
Parameters | |
---|---|
delegate | The delegate to apply. |
Returns | The status of the operation. |
auto edge:: tflite:: ModelImpl:: execute() -> STATUS final
Executes the TensorFlow Lite model.
Returns | The status of the operation. |
---|