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.

TDA2PXEVM: How to rebuild TIDL library after implementing some unsupported layers ?

Part Number: TDA2PXEVM

Hi,

According to this thread, the importing of an unsupported layer can be accomplished by implementing the layer like the already implemented layers in the "tidl_tfImport.cpp" file. I would like to know the steps required to rebuild the TIDL library after implementing the unsupported layer so that the TIDL import tool can convert a model with the new implemented layers. As far as I understand, the new layer should be implemented in the "tidl_tfImport.cpp" file, and the TIDL library should be rebuilt after the implementation. Would you please let me know how rebuilding the library is accomplished, and if there are any important steps to be done while implementing a new layer ?

Thanks,

Ahmed Anwar

  • Hi Ahmed Anwar,

    There are two options in adding new layers to TIDL :

    Option 1 : Add support for new layer in import tool which is already supported in TIDL library (for example DeConv layer), in this case do the required changes in import tool and rebuild it, and it does require any changes in TIDL so no need to rebuild TIDL for this option. Refer to section 3.6.1 in the TIDL user guide.

    Option 2 : Add support for new layer in import tool as well as in TIDL library, in this case do the required changes in import tool and also in TIDL library and rebuild both of them, refer to section 3.6.3 in the user guide for steps to rebuild TIDL for this option. Also note that this option requires you to get access to TIDL source code for adding new layer in TIDL library.

    Thanks,

    Praveen

       

  • Hi Praveen,

    Thank you for your reply.

    I checked section 3.6.1 in the TIDL user guide. I have some questions:

    • In the makefile located at "PROCESSOR_SDK_VISION_03_08_00_00/ti_components/algorithms/REL.TIDL.01.02.00.00/modules/ti_dl/utils/importTool/tidlModelImport", PROTOBUF_LIB_DIR and PROTOBUF_INC_DIR need to be specified. I think PROTOBUF_LIB_DIR should be set to where protobuf library exists. What should I set PROTOBUF_INC_DIR to ?
    • Should I use the same version of the protobuf library as specified in the user guide (protobuf library version 3.2.0rc2) ? Would you please send me a link to this version, as I can't find it using the provided link in the user guide ?
    • I tried to build the import tool, but I face an issue due to a missing file: "makefile:56: /home/mohameddawoud/TI/PROCESSOR_SDK_VISION_03_08_00_00/ti_components/algorithms/REL.TIDL.01.02.00.00/modules/makerules/rules.mk: No such file or directory
      make: *** No rule to make target '/home/mohameddawoud/TI/PROCESSOR_SDK_VISION_03_08_00_00/ti_components/algorithms/REL.TIDL.01.02.00.00/modules/makerules/rules.mk'. Stop." Where can I find this rules.mk file ?

    Thanks,

    Ahmed Anwar

  • Hi Ahmed Anwar, 

    Just search with keyword "3.2.0rc2" in the e2e, you will get threads related to this topic, one such thread is below for your questions, 

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/808664/tda2evm5777-issues-in-rebuilding-tidl-import-tool-both-using-command-and-bash-file/2992551?tisearch=e2e-sitesearch&keymatch=3.2.0rc2#2992551

    Thanks,

    Praveen 

  • Hi Praveen,

    I need access to TIDL source code. Would you please let me know what I should do to get it ?

    I searched on the forums, and found this thread which states:

    "Source release of TIDL is available as standalone release via CDDS.
    Please work with your local TI representative to get access to the same."

    I searched also about CDDS, and found this thread that states:

    "First you need to sign NDA document with your TI representative and then he will create the CDDS account."

    As I understand from the above sources, TIDL source code is available via CDDS, and in order to get it I need to sign an NDA document with my TI representative.

    Would you please let me know how to get or find a TI representative, and what are the steps needed to sign an NDA document ?

    Thanks,

    Ahmed Anwar