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.
32 lines
898 B
32 lines
898 B
#ifndef __CORTEX_ACTIVATION_LAYER_HEADER__
|
|
#define __CORTEX_ACTIVATION_LAYER_HEADER__
|
|
|
|
//#include "activations.h"
|
|
#include "../base/basicLayer.h"
|
|
//#include "network.h"
|
|
|
|
class activationLayer : public cortexLayer{
|
|
public:
|
|
explicit activationLayer(bool AA) : cortexLayer(ACTIVE, AA){};
|
|
~activationLayer(){};
|
|
bool create(uint32_t batch, uint32_t inputs, ACTIVATION activation);
|
|
virtual void forward(cortexSTATE state);
|
|
virtual void backward(cortexSTATE state);
|
|
virtual void push(void);
|
|
virtual void pull(void);
|
|
};
|
|
|
|
/*
|
|
layer make_activation_layer(int batch, int inputs, ACTIVATION activation);
|
|
|
|
void forward_activation_layer(layer l, network_state state);
|
|
void backward_activation_layer(layer l, network_state state);
|
|
|
|
#ifdef GPU
|
|
void forward_activation_layer_gpu(layer l, network_state state);
|
|
void backward_activation_layer_gpu(layer l, network_state state);
|
|
#endif
|
|
*/
|
|
|
|
#endif
|
|
|