henrygouk / nnet

High performance Artificial Neural Network library and utilities
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Feeling puzzled about one code line in Convolutional.cpp? #2

Closed dazhenseu closed 8 years ago

dazhenseu commented 8 years ago

Hi~ The Convolutional.cpp implements the convolution in frequency domain, and it seems this code line https://github.com/henrygouk/nnet/blob/master/source/Convolutional.cpp#L183 only add biase to the first elements of every output map image.Is it okay? So why not first transform the frequency output map to spatial domain and then add the same bias to each element of every output map image?

henrygouk commented 8 years ago

That adds the bias to the DC component of the frequency domain representation. This is equivalent to adding the bias to each element of the space domain representation.