#include <streaming_model.h>
|
| bool | load_model_ () |
| | Allocates tensor and variable arenas and sets up the model interpreter.
|
| |
| bool | register_streaming_ops_ (tflite::MicroMutableOpResolver< 20 > &op_resolver) |
| | Returns true if successfully registered the streaming model's TensorFlow operations.
|
| |
Definition at line 29 of file streaming_model.h.
◆ determine_detected()
| virtual DetectionEvent esphome::micro_wake_word::StreamingModel::determine_detected |
( |
| ) |
|
|
pure virtual |
◆ disable()
| virtual void esphome::micro_wake_word::StreamingModel::disable |
( |
| ) |
|
|
inlinevirtual |
◆ enable()
| virtual void esphome::micro_wake_word::StreamingModel::enable |
( |
| ) |
|
|
inlinevirtual |
◆ get_default_probability_cutoff()
| uint8_t esphome::micro_wake_word::StreamingModel::get_default_probability_cutoff |
( |
| ) |
const |
|
inline |
◆ get_probability_cutoff()
| uint8_t esphome::micro_wake_word::StreamingModel::get_probability_cutoff |
( |
| ) |
const |
|
inline |
◆ get_unprocessed_probability_status()
| bool esphome::micro_wake_word::StreamingModel::get_unprocessed_probability_status |
( |
| ) |
const |
|
inline |
◆ is_enabled()
| bool esphome::micro_wake_word::StreamingModel::is_enabled |
( |
| ) |
const |
|
inline |
◆ load_model_()
| bool esphome::micro_wake_word::StreamingModel::load_model_ |
( |
| ) |
|
|
protected |
Allocates tensor and variable arenas and sets up the model interpreter.
- Returns
- True if successful, false otherwise
Definition at line 29 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] | ) |
|
◆ register_streaming_ops_()
| bool esphome::micro_wake_word::StreamingModel::register_streaming_ops_ |
( |
tflite::MicroMutableOpResolver< 20 > & | op_resolver | ) |
|
|
protected |
Returns true if successfully registered the streaming model's TensorFlow operations.
Definition at line 268 of file streaming_model.cpp.
◆ reset_probabilities()
| void esphome::micro_wake_word::StreamingModel::reset_probabilities |
( |
| ) |
|
Sets all recent_streaming_probabilities to 0 and resets the ignore window count.
Definition at line 163 of file streaming_model.cpp.
◆ set_probability_cutoff()
| void esphome::micro_wake_word::StreamingModel::set_probability_cutoff |
( |
uint8_t | probability_cutoff | ) |
|
|
inline |
◆ 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 96 of file streaming_model.cpp.
◆ current_stride_step_
| uint8_t esphome::micro_wake_word::StreamingModel::current_stride_step_ {0} |
|
protected |
◆ default_probability_cutoff_
| uint8_t esphome::micro_wake_word::StreamingModel::default_probability_cutoff_ |
|
protected |
◆ enabled_
| bool esphome::micro_wake_word::StreamingModel::enabled_ {true} |
|
protected |
◆ ignore_windows_
| int16_t esphome::micro_wake_word::StreamingModel::ignore_windows_ {-MIN_SLICES_BEFORE_DETECTION} |
|
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 |
◆ loaded_
| bool esphome::micro_wake_word::StreamingModel::loaded_ {false} |
|
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_
| uint8_t 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 |
◆ streaming_op_resolver_
| tflite::MicroMutableOpResolver<20> esphome::micro_wake_word::StreamingModel::streaming_op_resolver_ |
|
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 |
◆ unprocessed_probability_status_
| bool esphome::micro_wake_word::StreamingModel::unprocessed_probability_status_ {false} |
|
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: