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

Method RecurrentInputShapes

src/caffe/layers/lstm_layer.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template <typename Dtype>
28void LSTMLayer<Dtype>::RecurrentInputShapes(vector<BlobShape>* shapes) const {
29 const int num_output = this->layer_param_.recurrent_param().num_output();
30 const int num_blobs = 2;
31 shapes->resize(num_blobs);
32 for (int i = 0; i < num_blobs; ++i) {
33 (*shapes)[i].Clear();
34 (*shapes)[i].add_dim(1); // a single timestep
35 (*shapes)[i].add_dim(this->N_);
36 (*shapes)[i].add_dim(num_output);
37 }
38}
39
40template <typename Dtype>
41void LSTMLayer<Dtype>::OutputBlobNames(vector<string>* names) const {

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.80

Tested by

no test coverage detected