Skip to main content
Return codes for Edge Impulse functions. Source: dsp/returntypes.h

EI_IMPULSE_ERROR

enum EI_IMPULSE_ERROR
NameValueDescription
EI_IMPULSE_OK0Success.
EI_IMPULSE_ERROR_SHAPES_DONT_MATCH-1The shape of data does not match the shape of input layer.
EI_IMPULSE_CANCELED-2Impulse execution is cancelled by user.
EI_IMPULSE_TFLITE_ERROR-3Error in TensorFlow Lite inference engine.
EI_IMPULSE_DSP_ERROR-5Error in processing portion of impulse.
EI_IMPULSE_TFLITE_ARENA_ALLOC_FAILED-6Failed to allocate memory in TensorFlow Lite arena, often caused by a lack of available heap memory.
EI_IMPULSE_CUBEAI_ERROR-7Error in CubeAI inference engine (STM32).
EI_IMPULSE_ALLOC_FAILED-8Memory allocation failed. Could be caused by a fragmented heap. Try to increase heap size.
EI_IMPULSE_ONLY_SUPPORTED_FOR_IMAGES-9This function is only supported for impulses with an image input.
EI_IMPULSE_UNSUPPORTED_INFERENCING_ENGINE-10The chosen inference engine (e.g. in Studio) is incapable of running this impulse.
EI_IMPULSE_OUT_OF_MEMORY-11Out of memory. Could be caused by a fragmented heap. Try to increase heap size.
EI_IMPULSE_INPUT_TENSOR_WAS_NULL-13Input tensor was null.
EI_IMPULSE_OUTPUT_TENSOR_WAS_NULL-14Output tensor was null.
EI_IMPULSE_SCORE_TENSOR_WAS_NULL-15Score tensor is null (for SSD Object Detection models).
EI_IMPULSE_LABEL_TENSOR_WAS_NULL-16Label tensor is null (for SSD Object Detection models).
EI_IMPULSE_TENSORRT_INIT_FAILED-17TensorRT (NVIDIA) initialization failed.
EI_IMPULSE_DRPAI_INIT_FAILED-18DRP-AI (Renesas) initialization failed.
EI_IMPULSE_DRPAI_RUNTIME_FAILED-19DRP-AI (Renesas) runtime failed.
EI_IMPULSE_DEPRECATED_MODEL-20The model is deprecated and cannot be used. You should re-export the impulse from Studio.
EI_IMPULSE_LAST_LAYER_NOT_AVAILABLE-21The last layer is not available in the model.
EI_IMPULSE_INFERENCE_ERROR-22Error during inference.
EI_IMPULSE_AKIDA_ERROR-23Error in Akida inference engine (BrainChip).
EI_IMPULSE_INVALID_SIZE-24The shape of data does not match the shape of input layer.
EI_IMPULSE_ONNX_ERROR-25Error in ONNX inference engine.
EI_IMPULSE_MEMRYX_ERROR-26Error in Memryx inference engine.
EI_IMPULSE_DEVICE_INIT_ERROR-27Device initialization (usually NPU accelerator) failed.
EI_IMPULSE_LAST_LAYER_NOT_SUPPORTED-28The last layer is not supported by inferencing engine.
EI_IMPULSE_POSTPROCESSING_ERROR-29Error in post-processing portion of impulse.
EI_IMPULSE_DATA_NORMALIZATION_ERROR-30Error in data normalization portion of impulse.
EI_IMPULSE_FREEFORM_OUTPUT_NULL-31Error when result.freeform_output is null.
EI_IMPULSE_FREEFORM_OUTPUT_SIZE_MISMATCH-32Error when result.freeform_output is the wrong size.
EI_IMPULSE_OUTPUT_TENSOR_NULL-33Error when the output tensor cannot be found in result->_raw_outputs.
EI_IMPULSE_POSTPROCESSING_THRESHOLD_KEY_NOT_FOUND-34Trying to set a threshold whose key cannot be found.
EI_IMPULSE_CALL_SIGNATURE_REMOVED-35This function has been removed, on GCC this will error out at compile time (with a migration message), but not all compilers support this.