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.
22 lines
509 B
22 lines
509 B
#ifndef __CORTEX_COST_LAYER_HEADER__
|
|
#define __CORTEX_COST_LAYER_HEADER__
|
|
|
|
|
|
#include "../base/basicLayer.h"
|
|
|
|
class costLayer : public cortexLayer{
|
|
private:
|
|
float m_fScale;
|
|
COST_TYPE m_eCostType;
|
|
public:
|
|
explicit costLayer(bool useGPU = true);
|
|
virtual ~costLayer();
|
|
void resizeEX(int val);
|
|
virtual bool create(uint32_t batch, uint32_t inputs, COST_TYPE cost_type, float scale);
|
|
|
|
friend class gpuCUDA;
|
|
friend class cpuHOST;
|
|
friend class cortexLayersFactory;
|
|
};
|
|
|
|
#endif
|