Skip to content

FAQ

Python API FAQ

No.Error MessagePossible CauseSolution
1< XX > does not contain value < YY >.The value of input YY is not within the valid range of aidlite built-in type XX.Check the input parameter in the error line and make sure the value is within the valid range for the corresponding aidlite built-in type.
2<class 'XX'> expected, got <YY: <class 'ZZ'>> instead.The data type ZZ of input YY does not match the required data type XX for the function.Check the input parameter in the error line and ensure the data type matches the required type for the function.
3None or empty list is not allowed for input_shapesThe value of input_shapes in the set_input_tensor method is None, while the function doesn't allow this.Ensure the value of input_shapes in set_input_tensor is not None and check the logic for assigning or retrieving this parameter.
4None or empty list is not allowed for output_shapesThe value of output_shapes in the set_input_tensor method is None, while the function doesn't allow this.Ensure the value of output_shapes in set_input_tensor is not None and check the logic for assigning or retrieving this parameter.
5The data type of out_tensor_idx must be intThe out_tensor_idx parameter in the get_output_tensor method cannot be of a non-int type.Check if the data type of out_tensor_idx is correct.
6out_tensor_idx should >=0The out_tensor_idx parameter in the get_output_tensor method cannot be less than 0.Ensure the value of out_tensor_idx is correct.
7out_tensor_idx cannot get output_tensorThe get_output_tensor method cannot retrieve the corresponding output_tensor through the out_tensor_idx parameter.Check if the value of out_tensor_idx is correct and whether the inference process has any exceptions.
8TYPE_DEFAULT is invalidThe function does not allow the default value for aidlite built-in types in this context.Modify the function input to set a value within the valid range of aidlite built-in types, excluding the default value.

C++ API FAQ

No.Error MessagePossible CauseSolution
1realpath [***] failed. errmsg: No such file or directoryThe model file path is incorrect or the model file does not exist.Ensure the model file exists and the path is correct.
2model file [***] maybe path abnormalThe model file path is incorrect or the model file does not exist.Ensure the model file exists and the path is correct.
3Read sysbase info file failedFailed to read the system base information file.Ensure the /etc/opt/aidlux/aidsys file exists and is readable.
4Parse sysbase info failedThe content of the system base information file is abnormal.Check the content of /etc/opt/aidlux/aidsys for abnormalities.
5Current aidlux don't support DLC modelThe current Aidlux does not support DLC model inference.DLC models are only supported on qc8250/qc6490/qc8550 platforms. Check if you're using one of these boards.
6Current aidlux don't support RKNN modelThe current Aidlux does not support RKNN model inference.RKNN models are only supported on the rk3588 platform. Check if you're using this board.
7Unknown framework typeThe FrameworkType type is not set.Set the correct FrameworkType enumeration value for the model file.
8Basic Aidlux don't support DSP/NPUThe Basic version of Aidlux does not support DSP/NPU hardware acceleration.Use the enterprise version of Aidlux to access DSP/NPU acceleration.
9Not support ImplementType::TYPE_&& FrameworkType::TYPE_The current Aidlux does not support this ImplementType + FrameworkType combination.Check and confirm that the correct Aidlite version is installed.
10Please activate the device to use DSP/NPUDSP/NPU hardware acceleration is only available on an activated Aidlux device.Ensure that Aidlux is activated on your device.
11Error while building SNPE object. ***. error_code=204; error_message=Couldn't find name. One or more specified output layers don't exist.Failed to construct SNPE object.Check if the snpe_out_names attribute of the Config object is filled correctly with the Node Name attribute from the model file.
12fast init attach_ashmem failedFailed to connect to the services needed by the ImplementType::Fast implementation.A reboot of the Aidlux platform is usually needed to restart the dependent services.