| | #ifndef CAFFE_NEURON_LAYER_HPP_ |
| | #define CAFFE_NEURON_LAYER_HPP_ |
| |
|
| | #include <vector> |
| |
|
| | #include "caffe/blob.hpp" |
| | #include "caffe/layer.hpp" |
| | #include "caffe/proto/caffe.pb.h" |
| |
|
| | namespace caffe { |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | template <typename Dtype> |
| | class NeuronLayer : public Layer<Dtype> { |
| | public: |
| | explicit NeuronLayer(const LayerParameter& param) |
| | : Layer<Dtype>(param) {} |
| | virtual void Reshape(const vector<Blob<Dtype>*>& bottom, |
| | const vector<Blob<Dtype>*>& top); |
| |
|
| | virtual inline int ExactNumBottomBlobs() const { return 1; } |
| | virtual inline int ExactNumTopBlobs() const { return 1; } |
| | }; |
| |
|
| | } |
| |
|
| | #endif |
| |
|