Is it possible get each
1) layer's type (eg: Convolution,InnerProduct ,Data, etc)
2) the layer's top labels (eg: ip1,ip2,conv1,conv2) in c++?
I searched the examples provided, but I couldn't find anything. currently I'm abel to get only the layers names by the following command
cout << "Layer name:" << "'" << net_->layer_names()[layer_index]
I'm searching for some command like net_->layer_type
Thankyou in advance!
The Layer
class has a public member function virtual const char *type()
returning the layer type. Hence
cout << "Layer type: " << net_->layers()[layer_index]->type();
should do the trick.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.