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.

TDA4VH-Q1: Question about device_config.cfg

Part Number: TDA4VH-Q1

We faced an issue that we believe it was not in the SDK 8.2 but introduced in the SDK 8.6. (Simply saying, board output is the same as in the X86 emulation in SDK 8.2 but board output is diffeent in SDK 8.6).

About this matter, I was told to try:
"One quick reason I can think of for the difference b/w 8.2 and 8.6 is one optimization approach enabled in 8.6 which was not there in 8.2. So if you want to try one change, please change the `DEVICE_NAME=0` in device_config.cfg file before model import and see if the issue goes away"

May I ask a little bit about the "device_config.cfg"?
To import (onnx->tidl binaries) our model, we just use the SDK executables like
"{tidl_sdk_path}/utils/tidlModelImport/out/tidl_model_import.out SOME_IMPORT_CONFIG.txt"
The command apparently accepts a configuration from "SOME_IMPORT_CONFIG.txt", but I didn't know "device_config.cfg" was involved.

I'm seeing "devicde_config.cfg" files from

./..../targetfs/opt/tidl_test/testvecs/config/import/device_config.cfg
./..../tidl_j784s4_08_06_00_10/tidl_tools/device_config.cfg
./..../tidl_j784s4_08_06_00_10/ti_dl/test/testvecs/config/import/device_config.cfg

So could you please confirm my understanding?
- Before we import (onnx->tidl binaries) our model,
- Change the "device_config.cfg" with DEVICE_NAME=0 <-- but which path among above? In tidl_j784s4_08_06_00_10/tidl_tools?
- Run the import process with the command and create the tidl binary files.
- Is there "device_config.cfg" for emulator and board inference? or is it just for import process?

  • Hi,

    Change the "device_config.cfg" with DEVICE_NAME=0 <-- but which path among above? In tidl_j784s4_08_06_00_10/tidl_tools?

    --> You can change the name in this path : ./..../tidl_j784s4_08_06_00_10/ti_dl/test/testvecs/config/import/device_config.cfg

    tidl_j784s4_08_06_00_10/tidl_tools is a soft link to above path.

    Is there "device_config.cfg" for emulator and board inference? or is it just for import process?

    --> The device_config.cfg is used only during import process. The parameters in this file are used to save some information as part of the tidl_net***.bin file during import which is in turn used for inference. The device_config from above path is picked up by default during import process so it is not specified as a separate parameter. This device_config.cfg is not directly used as part of the inference call.

    Regards,

    Anand