
caffe
weixin_38477915
这个作者很懒,什么都没留下…
展开
-
Google gflags
gflags是google开源的一个处理命令行参数的库, 由c++开发, 有python接口. caffe中有用到, 拿来学习下\\test.cpp #include <gflags/gflags.h> #include "other.h" #include "test.h"//自定义参数合法性检查 static bool Validatemyarg(const char* filename, gf原创 2017-04-25 15:59:10 · 267 阅读 · 0 评论 -
Google glog
google轻量级c++日志库glog, caffe中有用到, 现在只学习一些皮毛, 如果以后有用到再学#include <glog/logging.h> #include <gflags/gflags.h> //和gflags配套使用可以在命令行输入参数控制日志记录形式 int main(int argc, char** argv) { //和gflags配套使用时可用.google::I原创 2017-04-25 17:37:05 · 338 阅读 · 0 评论 -
从caffe.cpp里学到的一种函数调用的模式
在caffe.cpp里有一种根据命令行参数不同,调用不同函数的方法#include <gflags/gflags.h> #include <glog/logging> #include <map> #include <string>typedef int (*Brewfunction)(); typedef std::map<std::string, Brewfunction> BrewMap; B原创 2017-04-26 10:57:47 · 371 阅读 · 0 评论