1 #ifndef CAFFE_DECONV_LAYER_HPP_
2 #define CAFFE_DECONV_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"
28 template <
typename Dtype>
34 virtual inline const char*
type()
const {
return "Deconvolution"; }
42 const vector<bool>& propagate_down,
const vector<
Blob<Dtype>*>& bottom);
44 const vector<bool>& propagate_down,
const vector<
Blob<Dtype>*>& bottom);
45 virtual inline bool reverse_dimensions() {
return true; }
46 virtual void compute_output_shape();
51 #endif // CAFFE_DECONV_LAYER_HPP_
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: deconv_layer.cpp:43
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_...
virtual void Forward_cpu(const vector< Blob< Dtype > * > &bottom, const vector< Blob< Dtype > * > &top)
Using the CPU device, compute the layer output.
Definition: deconv_layer.cpp:25
Abstract base class that factors out the BLAS code common to ConvolutionLayer and DeconvolutionLayer.
Definition: base_conv_layer.hpp:18
virtual const char * type() const
Returns the layer type.
Definition: deconv_layer.hpp:34
A wrapper around SyncedMemory holders serving as the basic computational unit through which Layers,...
Definition: blob.hpp:24
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.
Convolve the input with a bank of learned filters, and (optionally) add biases, treating filters and ...
Definition: deconv_layer.hpp:29
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14