PetaVision  Alpha
DropoutLayer.hpp
1 #ifndef _DROPOUTLAYER_HPP_
2 #define _DROPOUTLAYER_HPP_
3 
4 #include "ANNLayer.hpp"
5 
6 namespace PV {
7 
8 class DropoutLayer : public ANNLayer {
9 
10  public:
11  DropoutLayer(const char *name, HyPerCol *hc);
12  virtual ~DropoutLayer();
13 
14  protected:
15  virtual Response::Status updateState(double timestamp, double dt) override;
16  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
17  virtual void ioParam_probability(enum ParamsIOFlag ioFlag);
18 
19  int mProbability = 0; // Value from 0-99 indicating per-neuron chance of dropout
20 };
21 }
22 #endif
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: DropoutLayer.cpp:9