title: trainable parameters of vgg16 model get changed after adding my own dense layer
body: <p>vgg16_model = tf.keras.applications.vgg16.VGG16()</p>
  <p>model= Sequential()</p>
  <p>for layer in vgg16_model.layers[:-1]:</p>
  <pre><code>model.add(layer)
  </code></pre>
  <p>model.summary()                   #The last dense layer is removed till now</p>
  <p><a href="https://i.stack.imgur.com/7Htf4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Htf4.png" alt="enter image description here" /></a></p>
  <p>for layer in model.layers:</p>
  <pre><code>layer.trainable=False         #for transfer learning i have freeze the layers
  </code></pre>
  <p>model.add(Dense(2, activation='softmax'))</p>
  <p>model.summary()                    #now when i add dense layers trainable parameters of model get changed</p>
  <p><a href="https://i.stack.imgur.com/V6Lx9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6Lx9.png" alt="enter image description here" /></a></p>