Return types and error codes

Return codes for Edge Impulse functions.

Source: dsp/returntypes.h

EI_IMPULSE_ERROR

enum EI_IMPULSE_ERROR 
ValueDescription

EI_IMPULSE_OK

Success

EI_IMPULSE_ERROR_SHAPES_DONT_MATCH

The shape of data does not match the shape of input layer.

EI_IMPULSE_CANCELED

Impulse execution is cancelled by user.

EI_IMPULSE_TFLITE_ERROR

Error in TesnorFlow Lite inference engine

EI_IMPULSE_DSP_ERROR

Error in processing portion of impulse

EI_IMPULSE_TFLITE_ARENA_ALLOC_FAILED

Failed to allocate memory in TensorFlow Lite arena, often caused by a lack of available heap memory.

EI_IMPULSE_CUBEAI_ERROR

Error in CubeAI inference engine (STM32)

EI_IMPULSE_ALLOC_FAILED

Memory allocation failed. Could be caused by a fragmented heap. Try to increase heap size.

EI_IMPULSE_ONLY_SUPPORTED_FOR_IMAGES

This function is only supported for impulses with an image input.

EI_IMPULSE_UNSUPPORTED_INFERENCING_ENGINE

The chosen inference engine (e.g. in Studio) is incapable of running this impulse.

EI_IMPULSE_OUT_OF_MEMORY

Out of memory. Could be caused by a fragmented heap. Try to increase heap size.

EI_IMPULSE_INPUT_TENSOR_WAS_NULL

Input tensor was null

EI_IMPULSE_OUTPUT_TENSOR_WAS_NULL

Output tensor was null

EI_IMPULSE_SCORE_TENSOR_WAS_NULL

Score tensor is null (for SSD Object Detection models).

EI_IMPULSE_LABEL_TENSOR_WAS_NULL

Label tensor is null (for SSD Object Detection models).

EI_IMPULSE_TENSORRT_INIT_FAILED

TensorRT (NVIDIA) initialization failed.

EI_IMPULSE_DRPAI_INIT_FAILED

DRP-AI (Renesas) initialization failed.

EI_IMPULSE_DRPAI_RUNTIME_FAILED

DRP-AI (Renesas) runtime failed.

EI_IMPULSE_DEPRECATED_MODEL

The model is deprecated and cannot be used. You should re-export the impulse from Studio.

EI_IMPULSE_LAST_LAYER_NOT_AVAILABLE

The last layer is not available in the model.

EI_IMPULSE_INFERENCE_ERROR

Error during inference.

EI_IMPULSE_AKIDA_ERROR

Error in Akida inference engine (BrainChip)

EI_IMPULSE_INVALID_SIZE

The shape of data does not match the shape of input layer.

EI_IMPULSE_ONNX_ERROR

Error in ONNX inference engine

EI_IMPULSE_MEMRYX_ERROR

Error in Memryx inference engine

Last updated