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.

bais layer has different results.

Hello,

I have met a problem with bais layer in TDA2x platform.

TIDL version: 01.01.03

The bais parameter is 

bias_param {
    filler {
        type: "constant"
        value: -128.0
    }
}

This is the bais layer input(left) and output(right) on TDA2x platform.

Here's our current layers like:

Data layer -> other layer -> bias layer ...

Does bias layer take only data layer as input?

Input element type is unsigned.

Output element type is signed.

It seems that no subtract operation in this layer.

And this is the PC-Simulator bais  layer input and output:

Thank you,

Kevin.

  • Hi Kevin,

    Did you dump this output using "tidl_writeTraceDataBuf" function in tidl_tb.c?

    If so, then this is expected as we are adding +128 for output before dumping (for visualization) in case of signed output data in the below code...

    for (k = 0; k < dataBuffParam->dimValues[3]; k++)
    {
       dst[k] = src[k] + 128;
    }

    So, actual bais layer output is correct only so you should get final layer output correct.  

    Thanks,

    Praveen