#include <streaming_model.h>
Definition at line 16 of file streaming_model.h.
◆ determine_detected()
virtual bool esphome::micro_wake_word::StreamingModel::determine_detected |
( |
| ) |
|
|
pure virtual |
◆ load_model()
bool esphome::micro_wake_word::StreamingModel::load_model |
( |
tflite::MicroMutableOpResolver< 20 > & |
op_resolver | ) |
|
Allocates tensor and variable arenas and sets up the model interpreter.
- Parameters
-
op_resolver | MicroMutableOpResolver object that must exist until the model is unloaded |
- Returns
- True if successful, false otherwise
Definition at line 26 of file streaming_model.cpp.
◆ log_model_config()
virtual void esphome::micro_wake_word::StreamingModel::log_model_config |
( |
| ) |
|
|
pure virtual |
◆ perform_streaming_inference()
bool esphome::micro_wake_word::StreamingModel::perform_streaming_inference |
( |
const int8_t |
features[PREPROCESSOR_FEATURE_SIZE] | ) |
|
◆ reset_probabilities()
void esphome::micro_wake_word::StreamingModel::reset_probabilities |
( |
| ) |
|
◆ unload_model()
void esphome::micro_wake_word::StreamingModel::unload_model |
( |
| ) |
|
Destroys the TFLite interpreter and frees the tensor and variable arenas' memory.
Definition at line 90 of file streaming_model.cpp.
◆ current_stride_step_
uint8_t esphome::micro_wake_word::StreamingModel::current_stride_step_ {0} |
|
protected |
◆ interpreter_
std::unique_ptr<tflite::MicroInterpreter> esphome::micro_wake_word::StreamingModel::interpreter_ |
|
protected |
◆ last_n_index_
size_t esphome::micro_wake_word::StreamingModel::last_n_index_ {0} |
|
protected |
◆ ma_
tflite::MicroAllocator* esphome::micro_wake_word::StreamingModel::ma_ {nullptr} |
|
protected |
◆ model_start_
const uint8_t* esphome::micro_wake_word::StreamingModel::model_start_ |
|
protected |
◆ mrv_
tflite::MicroResourceVariables* esphome::micro_wake_word::StreamingModel::mrv_ {nullptr} |
|
protected |
◆ probability_cutoff_
float esphome::micro_wake_word::StreamingModel::probability_cutoff_ |
|
protected |
◆ recent_streaming_probabilities_
std::vector<uint8_t> esphome::micro_wake_word::StreamingModel::recent_streaming_probabilities_ |
|
protected |
◆ sliding_window_size_
size_t esphome::micro_wake_word::StreamingModel::sliding_window_size_ |
|
protected |
◆ tensor_arena_
uint8_t* esphome::micro_wake_word::StreamingModel::tensor_arena_ {nullptr} |
|
protected |
◆ tensor_arena_size_
size_t esphome::micro_wake_word::StreamingModel::tensor_arena_size_ |
|
protected |
◆ var_arena_
uint8_t* esphome::micro_wake_word::StreamingModel::var_arena_ {nullptr} |
|
protected |
The documentation for this class was generated from the following files: