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.

26 lines
732 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_AVG_POOL_LAYER_HEADER__
  2. #define __CORTEX_AVG_POOL_LAYER_HEADER__
  3. #include "../base/basicLayer.h"
  4. class avgpoolLayer: public cortexLayer{
  5. protected:
  6. public:
  7. explicit avgpoolLayer(bool useGPU = true);
  8. virtual ~avgpoolLayer();
  9. virtual bool create( uint32_t batch, uint32_t w, uint32_t h, uint32_t c);
  10. virtual void forward( cortexSTATE state);
  11. virtual void backward( cortexSTATE state);
  12. virtual bool resize( uint32_t w, uint32_t h);
  13. virtual void push(void);
  14. virtual void pull(void);
  15. cortexImage * getImage(void);
  16. friend class gpuCUDA;
  17. friend class cpuHOST;
  18. friend class cortexProcessingUnit;
  19. friend class cortexLayersFactory;
  20. };
  21. #endif