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.

21 lines
509 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_COST_LAYER_HEADER__
  2. #define __CORTEX_COST_LAYER_HEADER__
  3. #include "../base/basicLayer.h"
  4. class costLayer : public cortexLayer{
  5. private:
  6. float m_fScale;
  7. COST_TYPE m_eCostType;
  8. public:
  9. explicit costLayer(bool useGPU = true);
  10. virtual ~costLayer();
  11. void resizeEX(int val);
  12. virtual bool create(uint32_t batch, uint32_t inputs, COST_TYPE cost_type, float scale);
  13. friend class gpuCUDA;
  14. friend class cpuHOST;
  15. friend class cortexLayersFactory;
  16. };
  17. #endif