📄 inputlayer.h
字号:
#ifndef _INPUTLAYER_H#define _INPUTLAYER_H#include "Layer.h"#include "InputNeuron.h"namespace annie{/** A layer of input neurons */class InputLayer : public TLayer<InputNeuron>{public: /** Construct a layer with the given label and with the given number of * inputs. * @param label The label to be given to this layer * @param size The number of input in this layer */ InputLayer(int label, int size=0); virtual ~InputLayer(); /// Sets the values of the input neurons in this layer to the values provided virtual void setInput(const Vector &input); /// Sets the values of the input neurons in this layer to the values provided virtual void setInput(const real *input); /** Adds a neuron to the input layer * @param nrn An InputNeuron * @throws Exception if the given neuron is not an InputNeuron */ virtual void addNeuron(Neuron *nrn); /// Returns "InputLayer" virtual const char *getClassName();};}; //namespace annie#endif // define _INPUTLAYER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -