首页 文章

如何在c中获得图层类型的caffe

提问于
浏览
4

有可能得到每一个

1)层的类型(例如:卷积,内部产品,数据等)

2)c中的图层顶部标签(例如:ip1,ip2,conv1,conv2)?

我搜索了提供的示例,但我找不到任何东西 . 目前,我只能通过以下命令获取图层名称

cout << "Layer name:" << "'" << net_->layer_names()[layer_index]

我正在寻找像 net_->layer_type 这样的命令

先感谢您!

1 回答

  • 1

    Layer 类具有返回图层类型的公共成员函数 virtual const char *type() . 于是

    cout << "Layer type: " << net_->layers()[layer_index]->type();
    

    应该做的伎俩 .

相关问题