Getting pycaffe layer name or blob type

Viewed 2638

I have some CNN called net for which I'd like to know the type of the blob or the name of the layer.

For example, I can easily access the blob name and the subsequent blob:

for blob in net.blobs:
    print(blob)
    net.blobs[blob]...

Or, I can access the layer type:

for x in range(len(net.layers)):
    print(net.layers[x].type)

Is there anyway to access this information like:

net.blobs[blob].type

or,

net.layers[x].name

Thanks

1 Answers
Related