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.
Part Number: PROCESSOR-SDK-DRA8X-TDA4X
Tool/software: TI C/C++ Compiler
hi.
I want to use scale layer with caffe like this:
but the result is different form my expectation.
I found tidlModleImport use FLT_MIN (1.175494351E-38) as the minimum value of float type to determine the range and maximum value of a parameter for batchnorm, (tidl_import_common.cpp)
In this code, I think it doesn't work properly if all the input data has a negative value.
How to use scale layer with negative weights?
Thanks
Since the quantPrec is 128, I am expecting the params to -128, -128, -128, -128 with the below code.
Can you check, How are you getting128?
BTW, set max = -FLT_MIN; in TIDL_findRange to get max -1. But I do not think this solve the problem that you are observing
Sorry. There is a typo.
The parameters are -128, -128, -128, -128.
Does "TIDL_BatchNormLayer" work as follows? (Used as "scale layer")
out = in * param (-128) / weightScale (128)