How to calculate the total number of parameters in a convolutional neural network?

瘦欲@ 提交于 2019-11-29 12:36:35

You can use this general formula:

channels_in * kernel_width * kernel_height * channels_out + num_channels

So the first example:

1 * 3 * 3 * 32 + 32 = 320

And the second:

32 * 3 * 3 * 64 + 64 = 18,496

The addition of the number of channels is the bias terms.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!