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 编译错误

Guru**** 2348500 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1511290/processor-sdk-j784s4-tidl-compilation-error-during-quantization

部件号:PROCESSOR-SDK-J784S4

工具/软件:

我将使用编译 ONNX 模型 edgeai-tidl-tools 并且在过程中遇到错误 量化和校准 SAR ADC。 此问题与不受支持的数据类型有关。 这些输入 看起来 是一样的 int参数。

============= [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

我需要确认类型  int在 TIDL 中不支持。 此外、列出支持的类型也会有所帮助。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Mahmoud:

    TIDL 支持 int8和 int16。  通常、输入 ONNX 模型为 float32、您可以通过 numParamBits (8或16)指定网络中的数据类型。  上述错误并不告诉我任何细节,只是某些层的数据类型不受支持。  如果您发送模型、配置文件和您尝试导入时使用的命令行、我可以告诉您更多信息。

    此致、
    Chris