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.

[参考译文] AM69A:访问 TIDL 自定义操作员实施中的多个输入时出现问题

Guru**** 2419530 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1536558/am69a-problem-accessing-multiple-inputs-in-tidl-custom-operator-implementation

器件型号:AM69A


工具/软件:

我正在实施一个采用两个输入的自定义运算符、其中我使用 Maxpool 自定义运算符示例作为参考、该示例位于:

/ti-processor-sdk-rtos-j784s4-evm-10_01_00_04/c7x-mma-tidl/ti_dl/custom/

我在函数中遇到问题:

TIDL_custom[MyCustomOp]_ixX_oxX_exec(void *kernelHandle, const TIDL_bufParams3D_t *srcAddr, const TIDL_bufParams3D_t *dstAddr, const void *srcPtr[], void *dstPtr)

尝试从访问输入数据时srcPtr、我始终观察到srcPtr[0]包含来自的数据 输入、而srcPtr[1]包含全零、这实际上意味着只能访问第二个输入。

此问题似乎可能源自以下地址的呼叫:

TIDL_DataflowProcess(void *tidlHandle, void *inPtrs[], void *outPtr[])
尽管两个输入都应该通过该函数传递、但在 DSP 执行函数中访问时只有一个输入正确显示。

这可能是一个错误、还是可能是由于当前实现仅支持 TIDL_DataFlowTypeOneTensorInProcOneChannel? 如果是、在这种情况下、处理多个输入的正确方法是什么?