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.

Compiler/TDA2PXEVM: TDA2PXEVM

Part Number: TDA2PXEVM

Tool/software: TI C/C++ Compiler

Hi All,

I want some suggestions on usage of vector registers as an index to other vector registers. eg. Vreg1[VregIndex].

I am implementing a kind of convolution algorithm. Input to this  algorithm is an image data and a kernel. 

i have referred a code for the convolution of an image in one of the TI document. where they will traverse through all elements of image and kernel. (total of 4 nested for loops)

In my case, the kernel contains only a 20% of non-zero coefficients. So i want to consider only those non-zero values.

I have computed offset of all non-zero coefficients of kernel and sending it to VCOP. and in VCOP-kernel i am loading those offset into a Vector register.

So, is there any way that i can use Vector register data as index to other vector registers.

example :

Voffset = offsetaddress[addrOffset];  // offsetaddress is an argument for VCOP-kernel where offset address of kernel coefficients shall be present

Vdata = InputData[Voffset];

Or is there any alternate approach for this operation?

Please let me know.

Regards,

Likhith C

  • HI Likhith,

    We did optimize our Conv kenrels considering the sparsity, please refer to below document which explains how sparsity is considered while optimizing the conv kernels and these kernels are part of our TIDL (ti deep learning libray) package, I would suggert to use this TIDL library instead of rewriting the conv kernels.  

    www.ti.com/.../spry314.pdf

    Object release of TIDL is part of TI’s processor software development (SDK) for vision. In the vision SDK, you’ll find TIDL with documents at \ti_components\algorithms\.
    www.ti.com/.../PROCESSOR-SDK-TDAX
    Source release of TIDL is available as standalone release via CDDS. Please work with your local TI representative to get access to the same.