darknet/src/gru_layer.h

25 lines
597 B
C
Raw Normal View History

2016-05-07 02:25:16 +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);
void push_gru_layer(layer l);
void pull_gru_layer(layer l);
2016-05-07 02:25:16 +03:00
#endif
#endif