Forum Discussion
Altera_Forum
Honored Contributor
8 years agoReduce logic utilization
Hi, I have this part in my kernel where it takes too much logic
if(relu == 1){
if(out < 0 )
conv_in = 0.1*out;
else
conv_in = out;
}
out is a float data. The report...
Altera_Forum
Honored Contributor
8 years agobecause there is no 0.1 in hardware.
if you use 0.1, compiler will use a lot of hardware to implement a number as close as 0.1, however if you use (0.125-0.03125)*out, it's like((1>>3)-(1>>5))*out