title: How to split resnet50 model from top as well as from bottom?
body: <p>I am using <code>keras</code> pretrained model with <code>include_top=False</code>, but i also want to remove one resblock from <code>top</code> and one from <code>bottom</code> as well. For <code>vgg</code> net, it is simple, because of straight forward links in layers, but in resnet, architecture is complicated because of skip connection, so direct approach doesn't fit well. </p>
  
  <p>Can somebody recommend any resource or scripts to do it?</p>
  
  <pre><code>renet = tf.keras.applications.resnet50.ResNet50(include_top=False, weights='imagenet')
  </code></pre>