title: How to calculate the number of parameters of convolutional neural networks?
body: <p>I can't give the correct number of parameters of <a href="http://www.cs.toronto.edu/~fritz/absps/imagenet.pdf">AlexNet</a> or <a href="http://arxiv.org/abs/1409.1556">VGG Net</a>.</p>
  
  <p>For example, to calculate the number of parameters of a <code>conv3-256</code> layer of VGG Net, the answer is 0.59M = (3*3)*(256*256), that is (kernel size) * (product of both number of channels in the joint layers), however in that way, I can't get the <code>138M</code> parameters.</p>
  
  <p>So could you please show me where is wrong with my calculation, or show me the right calculation procedure?</p>