doonny / PipeCNN

An OpenCL-based FPGA Accelerator for Convolutional Neural Networks
Apache License 2.0
1.22k stars 370 forks source link

Using different frac_w for weights and bias #65

Closed META-DREAMER closed 5 years ago

META-DREAMER commented 6 years ago

Is it possible to use a different frac_w for the bias and for the weights? My biases values are much larger than my weight values so finding an appropriate frac_w for both of them is difficult. If I regenerate my weights using different frac_w for the biases, and then update main.cpp and conv_pipe.cl to take this new parameter into account, would that work?

doonny commented 6 years ago

Yes, you can set different values for frac_w, but you need to change the code at where the bias is added to the final results.