2016-05-07 02:25:16 +03:00
|
|
|
|
2016-09-25 09:12:54 +03:00
|
|
|
#ifndef GRU_LAYER_H
|
|
|
|
#define GRU_LAYER_H
|
2016-05-07 02:25:16 +03:00
|
|
|
|
|
|
|
#include "activations.h"
|
|
|
|
#include "layer.h"
|
|
|
|
#include "network.h"
|
|
|
|
|
2017-06-13 02:19:08 +03:00
|
|
|
layer make_gru_layer(int batch, int inputs, int outputs, int steps, int batch_normalize, int adam);
|
2016-05-07 02:25:16 +03:00
|
|
|
|
2017-06-07 02:50:19 +03:00
|
|
|
void forward_gru_layer(layer l, network state);
|
|
|
|
void backward_gru_layer(layer l, network state);
|
2017-06-13 02:19:08 +03:00
|
|
|
void update_gru_layer(layer l, update_args a);
|
2016-05-07 02:25:16 +03:00
|
|
|
|
|
|
|
#ifdef GPU
|
2017-06-07 02:50:19 +03:00
|
|
|
void forward_gru_layer_gpu(layer l, network state);
|
|
|
|
void backward_gru_layer_gpu(layer l, network state);
|
2017-06-13 02:19:08 +03:00
|
|
|
void update_gru_layer_gpu(layer l, update_args a);
|
2016-09-25 09:12:54 +03:00
|
|
|
void push_gru_layer(layer l);
|
|
|
|
void pull_gru_layer(layer l);
|
2016-05-07 02:25:16 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|