This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J784S4: TIDL Compilation Error During Quantization

Part Number: PROCESSOR-SDK-J784S4

Tool/software:

I’m compiling an ONNX model using edgeai-tidl-tools and encountered an error during the Quantization & Calibration stage. The issue is related to unsupported data types. These inputs appear to be of int type.

============= [Quantization & Calibration for subgraph_10 Started] =============


-------- Running Calibration in Float Mode to Collect Tensor Statistics --------
[=============================================================================] 100 %

------------------ Fixed-point Calibration Iteration [1 / 1]: ------------------
Error at line:  1367 : in file /sdk/OSRT/Build/J784S4/c7x-mma-tidl/ti_dl/test/src/pc_linux/../tidl_rt.c, of function : TIDLRT_invoke 
Invalid Error Type!
Error at line:   756 : in file /sdk/OSRT/Build/J784S4/c7x-mma-tidl/ti_dl/test/src/pc_linux/../tidl_tb.c, of function : tidlMultiInstanceTest 
Invalid Error Type!
Error at line:   762 : in file /sdk/OSRT/Build/J784S4/c7x-mma-tidl/ti_dl/test/src/pc_linux/../tidl_tb.c, of function : tidlMultiInstanceTest 
Invalid Error Type!


==================== [Quantization & Calibration Completed] ====================

========================== [Memory Planning Started] ==========================


------------------------- Network Compiler Traces ------------------------------
Wrong data type for layer input 8, 38
Wrong data type for layer output 8, 38
Wrong data type for layer input 11, 5
Error : Error Code = <ERR_UNSUPPORTED_DATA_TYPE>
[TIDL Import]  FATAL ERROR: Network Compiler failed to execute - Memory planning failed with return code - 65280 -- [tidl_import_core.cpp, 1003]
[TIDL Import] Aborting

I need to confirm whether type int is not supported in TIDL. Additionally, a list of supported types would be helpful.

  • Hi Mahmoud,

    TIDL supports int8 and int16.  In general, the input ONNX models are float32, and you specify the data type in the network by numParamBits (8 or 16).  The above error does not tell me any specifics, just that some layers have an unsupported data type.  If you send your model, config file, and the command line you used to try the import, I would be able to tell you more.

    Regards,
    Chris