【发布时间】:2018-04-08 19:12:18
【问题描述】:
1) 是否可以在 c++ 中获取每个层的顶部标签(例如:ip1、ip2、conv1、conv2)? 如果我的层是
layer {
name: "relu1_1"
type: "Input"
top: "pool1"
input_param {
shape: {
dim:1
dim: 1
dim: 28
dim: 28
}
}
}
我想获得顶部标签,在我的例子中是“pool1”
我搜索了提供的示例,但找不到任何内容。目前我只能通过以下命令获取图层名称和图层类型,
cout << "Layer name:" << "'" << net_->layer_names()[layer_index]<<endl;
cout << "Layer type: " << net_->layers()[layer_index]->type()<<endl;
2) 我在哪里可以找到解释使用 c++ 使用 caffe 框架的最常用 API 的教程或示例?
提前谢谢你。
【问题讨论】:
标签: c++ neural-network computer-vision deep-learning caffe