MCPcopy Create free account
hub / github.com/BVLC/caffe / RecurrentInputShapes

Method RecurrentInputShapes

src/caffe/layers/rnn_layer.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename Dtype>
26void RNNLayer<Dtype>::RecurrentInputShapes(vector<BlobShape>* shapes) const {
27 const int num_output = this->layer_param_.recurrent_param().num_output();
28 shapes->resize(1);
29 (*shapes)[0].Clear();
30 (*shapes)[0].add_dim(1); // a single timestep
31 (*shapes)[0].add_dim(this->N_);
32 (*shapes)[0].add_dim(num_output);
33}
34
35template <typename Dtype>
36void RNNLayer<Dtype>::OutputBlobNames(vector<string>* names) const {

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.80

Tested by

no test coverage detected