- 博客(8)
- 收藏
- 关注
原创 caffe源码追踪-net
先来看看caffe/include/caffe/net.hpp#ifndef CAFFE_NET_HPP_ #define CAFFE_NET_HPP_#include <map> #include <set> #include <string> #include <utility> #include <vector>#include "caffe/blob.hpp" #include "caffe
2017-08-09 20:58:48
427
原创 caffe源码追踪--layer_factory
关于怎么注册层,caffe提供了两种方式: (1)只有一个构造函数时,在cpp文件最后加上 REGISTER_LAYER_CLASS(MyAwesome); 即可 (2)若是还有如下形式的构造函数 template Layer#ifndef CAFFE_LAYER_FACTORY_H_ #define CAFFE_LAYER_FACTORY_H_#include <map>
2017-08-09 15:35:56
329
原创 caffe源码追踪--layer
首先来看看caffe/include/caffe/layer.hpp#ifndef CAFFE_LAYER_H_ #define CAFFE_LAYER_H_#include <algorithm> #include <string> #include <vector>#include "caffe/blob.hpp" #include "caffe/common.hpp" #include "ca
2017-08-08 21:48:28
210
原创 caffe源码追踪--syncedmem
首先来看看caffe/include/caffe/syncedmem.hpp#ifndef CAFFE_SYNCEDMEM_HPP_ #define CAFFE_SYNCEDMEM_HPP_#include <cstdlib>#include "caffe/common.hpp" namespace caffe { inline void CaffeMallocHost(void** ptr, si
2017-08-08 21:08:39
172
原创 caffe源码追踪--blob
首先来看看头文件:caffe/include/caffe/blob.hpp#ifndef CAFFE_BLOB_HPP_ #define CAFFE_BLOB_HPP_ #include <algorithm> #include <string> #include <vector> #include "caffe/common.hpp" #include "caffe/proto/caffe.pb.
2017-08-08 16:10:00
201
原创 caffe源码追踪--主线结构
caffe采用模块化结构对深度网络进行层层抽象,我们跟着caffe源码的目录结构来看看都有哪些抽象: blob:caffe中对数据存储的抽象,进行存储和传递的数据块.实际上就是一个n 维数组,具体维度数目根据处理对象而定,比如对于图像对象,则n通常为4,即 n(批处理图像数) c(通道数) h(图像高度) w(图像宽度);blob存储是行主序的,就是说坐标为(n, c, h, w)的值的物理位
2017-08-08 13:28:49
196
原创 caffe 源码追踪--开篇
最近要找工作了,把笔记整理整理,放在博客上,希望大家一起学习,共同进步。 caffe 的安装部分,建议大家严格按照官网教程来做caffe官网。编译源码的过程中可能会遇到一些驱动版本不匹配或是gpu计算能力不够等问题,大家可以在网上查找一下解决方案,也可以在下方留言,若是看到,必定回复。 接下来就正式开始我们对caffe源码的追踪咯!嘻嘻嘻…
2017-08-02 12:21:45
188
空空如也
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝