1 #ifndef CAFFE_CONV_LAYER_HPP_
2 #define CAFFE_CONV_LAYER_HPP_
6 #include "caffe/blob.hpp"
7 #include "caffe/layer.hpp"
8 #include "caffe/proto/caffe.pb.h"
10 #include "caffe/layers/base_conv_layer.hpp"
30 template <
typename Dtype>
67 virtual inline const char*
type()
const {
return "Convolution"; }
75 const vector<bool>& propagate_down,
const vector<
Blob<Dtype>*>& bottom);
77 const vector<bool>& propagate_down,
const vector<
Blob<Dtype>*>& bottom);
78 virtual inline bool reverse_dimensions() {
return false; }
79 virtual void compute_output_shape();
84 #endif // CAFFE_CONV_LAYER_HPP_
virtual void Forward_gpu(const vector< Blob< Dtype > * > &bottom, const vector< Blob< Dtype > * > &top)
Using the GPU device, compute the layer output. Fall back to Forward_cpu() if unavailable.
virtual void Backward_cpu(const vector< Blob< Dtype > * > &top, const vector< bool > &propagate_down, const vector< Blob< Dtype > * > &bottom)
Using the CPU device, compute the gradients for any parameters and for the bottom blobs if propagate_...
Definition: conv_layer.cpp:43
ConvolutionLayer(const LayerParameter ¶m)
Definition: conv_layer.hpp:64
virtual const char * type() const
Returns the layer type.
Definition: conv_layer.hpp:67
Abstract base class that factors out the BLAS code common to ConvolutionLayer and DeconvolutionLayer.
Definition: base_conv_layer.hpp:18
A wrapper around SyncedMemory holders serving as the basic computational unit through which Layers,...
Definition: blob.hpp:24
Convolves the input image with a bank of learned filters, and (optionally) adds biases.
Definition: conv_layer.hpp:31
virtual void Forward_cpu(const vector< Blob< Dtype > * > &bottom, const vector< Blob< Dtype > * > &top)
Using the CPU device, compute the layer output.
Definition: conv_layer.cpp:25
virtual void Backward_gpu(const vector< Blob< Dtype > * > &top, const vector< bool > &propagate_down, const vector< Blob< Dtype > * > &bottom)
Using the GPU device, compute the gradients for any parameters and for the bottom blobs if propagate_...
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14