title: Getting pycaffe layer name or blob type
body: <p>I have some CNN called <code>net</code> for which I'd like to know the type of the blob or the name of the layer.</p>
  
  <p>For example, I can easily access the blob name and the subsequent blob:</p>
  
  <pre><code>for blob in net.blobs:
      print(blob)
      net.blobs[blob]...
  </code></pre>
  
  <p>Or, I can access the layer type:</p>
  
  <pre><code>for x in range(len(net.layers)):
      print(net.layers[x].type)
  </code></pre>
  
  <p>Is there anyway to access this information like:</p>
  
  <pre><code>net.blobs[blob].type
  </code></pre>
  
  <p>or,</p>
  
  <p><code>net.layers[x].name</code></p>
  
  <p>Thanks</p>