Return codes for Edge Impulse functions. Source: dsp/returntypes.h

EI_IMPULSE_ERROR

enum EI_IMPULSE_ERROR
ValueDescription
EI_IMPULSE_OKSuccess
EI_IMPULSE_ERROR_SHAPES_DONT_MATCHThe shape of data does not match the shape of input layer.
EI_IMPULSE_CANCELEDImpulse execution is cancelled by user.
EI_IMPULSE_TFLITE_ERRORError in TensorFlow Lite inference engine
EI_IMPULSE_DSP_ERRORError in processing portion of impulse
EI_IMPULSE_TFLITE_ARENA_ALLOC_FAILEDFailed to allocate memory in TensorFlow Lite arena, often caused by a lack of available heap memory.
EI_IMPULSE_CUBEAI_ERRORError in CubeAI inference engine (STM32)
EI_IMPULSE_ALLOC_FAILEDMemory allocation failed. Could be caused by a fragmented heap. Try to increase heap size.
EI_IMPULSE_ONLY_SUPPORTED_FOR_IMAGESThis function is only supported for impulses with an image input.
EI_IMPULSE_UNSUPPORTED_INFERENCING_ENGINEThe chosen inference engine (e.g. in Studio) is incapable of running this impulse.
EI_IMPULSE_OUT_OF_MEMORYOut of memory. Could be caused by a fragmented heap. Try to increase heap size.
EI_IMPULSE_INPUT_TENSOR_WAS_NULLInput tensor was null
EI_IMPULSE_OUTPUT_TENSOR_WAS_NULLOutput tensor was null
EI_IMPULSE_SCORE_TENSOR_WAS_NULLScore tensor is null (for SSD Object Detection models).
EI_IMPULSE_LABEL_TENSOR_WAS_NULLLabel tensor is null (for SSD Object Detection models).
EI_IMPULSE_TENSORRT_INIT_FAILEDTensorRT (NVIDIA) initialization failed.
EI_IMPULSE_DRPAI_INIT_FAILEDDRP-AI (Renesas) initialization failed.
EI_IMPULSE_DRPAI_RUNTIME_FAILEDDRP-AI (Renesas) runtime failed.
EI_IMPULSE_DEPRECATED_MODELThe model is deprecated and cannot be used. You should re-export the impulse from Studio.
EI_IMPULSE_LAST_LAYER_NOT_AVAILABLEThe last layer is not available in the model.
EI_IMPULSE_INFERENCE_ERRORError during inference.
EI_IMPULSE_AKIDA_ERRORError in Akida inference engine (BrainChip)
EI_IMPULSE_INVALID_SIZEThe shape of data does not match the shape of input layer.
EI_IMPULSE_ONNX_ERRORError in ONNX inference engine
EI_IMPULSE_MEMRYX_ERRORError in Memryx inference engine