]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - jacinto-ai/caffe-jacinto.git/blob - src/caffeine/neuron_layer.cpp
working update
[jacinto-ai/caffe-jacinto.git] / src / caffeine / neuron_layer.cpp
1 #include "caffeine/layer.hpp"
2 #include "caffeine/vision_layers.hpp"
4 namespace caffeine {
6 template <typename Dtype>
7 void NeuronLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom,
8       vector<Blob<Dtype>*>* top) {
9   CHECK_EQ(bottom.size(), 1) << "Neuron Layer takes a single blob as input.";
10   CHECK_EQ(top->size(), 1) << "Neuron Layer takes a single blob as output.";
11   (*top)[0]->Reshape(bottom[0]->num(), bottom[0]->channels(),
12       bottom[0]->height(), bottom[0]->width());
13 };
15 template class NeuronLayer<float>;
16 template class NeuronLayer<double>;
18 }  // namespace caffeine