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.

20 lines
579 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_MAX_POOL_LAYER_HEADER__
  2. #define __CORTEX_MAX_POOL_LAYER_HEADER__
  3. #include "../base/basicLayer.h"
  4. class maxpoolLayer: public cortexLayer{
  5. public:
  6. explicit maxpoolLayer(bool AA);
  7. ~maxpoolLayer();
  8. bool create(uint32_t batch, uint32_t h, uint32_t w, uint32_t c, uint32_t size, uint32_t stride, uint32_t padding);
  9. virtual bool resize(uint32_t w, uint32_t h);
  10. cortexImage * getImage(void);
  11. cortexImage * getDeltaImage(void);
  12. friend class gpuCUDA;
  13. friend class cpuHOST;
  14. friend class cortexLayersFactory;
  15. };
  16. #endif