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

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_ACTIVATION_LAYER_HEADER__
  2. #define __CORTEX_ACTIVATION_LAYER_HEADER__
  3. //#include "activations.h"
  4. #include "../base/basicLayer.h"
  5. //#include "network.h"
  6. class activationLayer : public cortexLayer{
  7. public:
  8. explicit activationLayer(bool AA) : cortexLayer(ACTIVE, AA){};
  9. ~activationLayer(){};
  10. bool create(uint32_t batch, uint32_t inputs, ACTIVATION activation);
  11. virtual void forward(cortexSTATE state);
  12. virtual void backward(cortexSTATE state);
  13. virtual void push(void);
  14. virtual void pull(void);
  15. };
  16. /*
  17. layer make_activation_layer(int batch, int inputs, ACTIVATION activation);
  18. void forward_activation_layer(layer l, network_state state);
  19. void backward_activation_layer(layer l, network_state state);
  20. #ifdef GPU
  21. void forward_activation_layer_gpu(layer l, network_state state);
  22. void backward_activation_layer_gpu(layer l, network_state state);
  23. #endif
  24. */
  25. #endif