2013-12-03 04:41:40 +04:00
|
|
|
#ifndef SOFTMAX_LAYER_H
|
|
|
|
#define SOFTMAX_LAYER_H
|
2015-05-11 23:46:49 +03:00
|
|
|
#include "layer.h"
|
2015-12-14 22:57:10 +03:00
|
|
|
#include "network.h"
|
2013-12-03 04:41:40 +04:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
typedef layer softmax_layer;
|
2013-12-03 04:41:40 +04:00
|
|
|
|
2016-01-28 23:30:38 +03:00
|
|
|
void softmax_array(float *input, int n, float temp, float *output);
|
2015-05-11 23:46:49 +03:00
|
|
|
softmax_layer make_softmax_layer(int batch, int inputs, int groups);
|
2017-04-10 05:56:42 +03:00
|
|
|
void forward_softmax_layer(const softmax_layer l, network net);
|
|
|
|
void backward_softmax_layer(const softmax_layer l, network net);
|
2014-10-22 01:49:18 +04:00
|
|
|
|
|
|
|
#ifdef GPU
|
2015-05-11 23:46:49 +03:00
|
|
|
void pull_softmax_layer_output(const softmax_layer l);
|
2017-04-10 05:56:42 +03:00
|
|
|
void forward_softmax_layer_gpu(const softmax_layer l, network net);
|
|
|
|
void backward_softmax_layer_gpu(const softmax_layer l, network net);
|
2014-10-22 01:49:18 +04:00
|
|
|
#endif
|
2013-12-03 04:41:40 +04:00
|
|
|
|
|
|
|
#endif
|