darknet/src/rnn_layer.h

25 lines
703 B
C
Raw Normal View History

2016-01-28 23:30:38 +03:00
2016-05-07 02:25:16 +03:00
#ifndef GRU_LAYER_H
#define GRU_LAYER_H
2016-01-28 23:30:38 +03:00
#include "activations.h"
#include "layer.h"
#include "network.h"
2016-05-07 02:25:16 +03:00
layer make_gru_layer(int batch, int inputs, int outputs, int steps, int batch_normalize);
2016-01-28 23:30:38 +03:00
2016-05-07 02:25:16 +03:00
void forward_gru_layer(layer l, network_state state);
void backward_gru_layer(layer l, network_state state);
void update_gru_layer(layer l, int batch, float learning_rate, float momentum, float decay);
2016-01-28 23:30:38 +03:00
#ifdef GPU
2016-05-07 02:25:16 +03:00
void forward_gru_layer_gpu(layer l, network_state state);
void backward_gru_layer_gpu(layer l, network_state state);
void update_gru_layer_gpu(layer l, int batch, float learning_rate, float momentum, float decay);
void push_gru_layer(layer l);
void pull_gru_layer(layer l);
2016-01-28 23:30:38 +03:00
#endif
#endif