Edge AI Add-on API 3.0.0
Loading...
Searching...
No Matches

◆ NRF_EDGEAI_OBSV_MCD_STORAGE_BYTES

#define NRF_EDGEAI_OBSV_MCD_STORAGE_BYTES ( n_classes)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Value:
(sizeof(_nrf_obsv_mcd_hdr_t) + \
CONFIG_NRF_EDGEAI_OBSV_MODEL_CERTAINTY_DESC_BIN_NUM * sizeof(uint32_t))
#define NRF_EDGEAI_OBSV_MCD_NUM_ROWS
Rows of the model certainty descriptor matrix.
Definition nrf_edgeai_obsv_metrics.h:263

Minimum byte size of a model certainty descriptor storage buffer.

The descriptor is a fixed NRF_EDGEAI_OBSV_MCD_NUM_ROWS x bin_num matrix (entropy histogram, top-2 margin histogram, stability counters), so storage does not depend on n_classes; the parameter is accepted only for symmetry with the other metric storage macros. Use with nrf_edgeai_obsv_metric_mcd_create. The buffer must be aligned to at least sizeof(uint32_t) bytes.