2017-06-07 02:50:19 +03:00
|
|
|
#ifndef LSTM_LAYER_H
|
|
|
|
#define LSTM_LAYER_H
|
|
|
|
|
|
|
|
#include "activations.h"
|
|
|
|
#include "layer.h"
|
|
|
|
#include "network.h"
|
|
|
|
#define USET
|
|
|
|
|
2017-06-13 02:19:08 +03:00
|
|
|
layer make_lstm_layer(int batch, int inputs, int outputs, int steps, int batch_normalize, int adam);
|
2017-06-07 02:50:19 +03:00
|
|
|
|
2017-06-07 03:16:13 +03:00
|
|
|
void forward_lstm_layer(layer l, network net);
|
2017-06-13 02:19:08 +03:00
|
|
|
void update_lstm_layer(layer l, update_args a);
|
2017-06-07 02:50:19 +03:00
|
|
|
|
|
|
|
#ifdef GPU
|
2017-06-07 03:16:13 +03:00
|
|
|
void forward_lstm_layer_gpu(layer l, network net);
|
|
|
|
void backward_lstm_layer_gpu(layer l, network net);
|
2017-06-13 02:19:08 +03:00
|
|
|
void update_lstm_layer_gpu(layer l, update_args a);
|
2017-06-07 02:50:19 +03:00
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|