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.

AM62A7: ialg.algAlloc failed while running cunstom DL model on SDK 10.1

Part Number: AM62A7

Tool/software:

Hi TI experts,

I've run into an Error while trying to deploy my custom DL model, the log is provided below. Cause the ialg seems not been open-sourced yet, so I wonder what does the status= -1125 mean. And how should I do to deploy my model into SDK 10.1 ?

Thanks,

Yizhe Fan

  • Hello Yizhe Fan,

    This message indicates TIDL_E_QUANT_STATS_NOT_AVAILABALE, per itidl_ti.h

    This indicates that quantization did not complete during the import/compile process for your model. To resolve this, we will need to look at the compile/import log. 

    • For Open Source Run Time (OSRT) import flow, set debug_level=2 in the delegate options passed while initializing the model through runtime API
      • Within edgeai-tidl-tools/examples/osrt_python, you can do this by adding an 'runtime_options' dictionary to the model_config entry OR by setting debug_level globally in common_utils.py
    • For tid_model_import.out flow, set debugTraceLevel to 2
    • `export TIDL_RT_DEBUG=1`  -- not as necessary, but sometimes reveals important information. This setting is highly verbose. 

    BR,
    Reese

  • Hi Reese,

    The sdk 10.1's <c7x_mma_tidl> folder hadn't been complied completely, so the <tidl_model_import.out>&<PC_dsp_test_dl_algo.out> was not proper when I was on my model import trail. 

    I find the compile toolchain & 3-part library porfolio is very difficult to config. Could you please provide me <tidl_model_import.out>&<PC_dsp_test_dl_algo.out> under sdk version of <ti-firmware-builder-am62axx-evm-10_01_00_04>?

    Thanks a lot,

    Yizhe

  • Hello Yizhe,

    The tidl_tools you are looking for can be downloaded from edgeai-tidl-tools for a 10_01... tag, like so: https://github.com/TexasInstruments/edgeai-tidl-tools/releases/tag/10_01_04_00

    The setup.sh script will download tidl_tools tarball with all tidl_model_import.out and similar included. Set SOC=am62a prior to running this script. 

    The make target for tidl_pc_tools can build those tools as well, but does require a few dependencies. The TIDL user guide has directions for building those, and the dependencies can be pulled with the `sdk_builder/scripts/setup_psdk_rtos.sh --install_tidl_deps`

    BR,
    Reese