You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
732 B

#ifndef __CORTEX_AVG_POOL_LAYER_HEADER__
#define __CORTEX_AVG_POOL_LAYER_HEADER__
#include "../base/basicLayer.h"
class avgpoolLayer: public cortexLayer{
protected:
public:
explicit avgpoolLayer(bool useGPU = true);
virtual ~avgpoolLayer();
virtual bool create( uint32_t batch, uint32_t w, uint32_t h, uint32_t c);
virtual void forward( cortexSTATE state);
virtual void backward( cortexSTATE state);
virtual bool resize( uint32_t w, uint32_t h);
virtual void push(void);
virtual void pull(void);
cortexImage * getImage(void);
friend class gpuCUDA;
friend class cpuHOST;
friend class cortexProcessingUnit;
friend class cortexLayersFactory;
};
#endif