1 #ifndef CAFFE_RNN_LAYER_HPP_
2 #define CAFFE_RNN_LAYER_HPP_
8 #include "caffe/blob.hpp"
9 #include "caffe/common.hpp"
10 #include "caffe/layer.hpp"
11 #include "caffe/layers/recurrent_layer.hpp"
12 #include "caffe/net.hpp"
13 #include "caffe/proto/caffe.pb.h"
17 template <
typename Dtype>
class RecurrentLayer;
29 template <
typename Dtype>
32 explicit RNNLayer(
const LayerParameter& param)
35 virtual inline const char* type()
const {
return "RNN"; }
47 #endif // CAFFE_RNN_LAYER_HPP_
virtual void RecurrentInputShapes(vector< BlobShape > *shapes) const
Fills shapes with the shapes of the recurrent input Blob&s. Subclasses should define this – see RNNLa...
Definition: rnn_layer.cpp:26
virtual void FillUnrolledNet(NetParameter *net_param) const
Fills net_param with the recurrent network architecture. Subclasses should define this – see RNNLayer...
Definition: rnn_layer.cpp:42
virtual void RecurrentOutputBlobNames(vector< string > *names) const
Fills names with the names of the Tth timestep recurrent output Blob&s. Subclasses should define this...
Definition: rnn_layer.cpp:20
virtual void OutputBlobNames(vector< string > *names) const
Fills names with the names of the output blobs, concatenated across all timesteps....
Definition: rnn_layer.cpp:36
An abstract class for implementing recurrent behavior inside of an unrolled network....
Definition: recurrent_layer.hpp:26
Processes time-varying inputs using a simple recurrent neural network (RNN). Implemented as a network...
Definition: rnn_layer.hpp:30
virtual void RecurrentInputBlobNames(vector< string > *names) const
Fills names with the names of the 0th timestep recurrent input Blob&s. Subclasses should define this ...
Definition: rnn_layer.cpp:14
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14