forked from Sunyouteng/darknet_prune_yoloV3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconv_lstm_layer.h
40 lines (32 loc) · 1.49 KB
/
conv_lstm_layer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CONV_LSTM_LAYER_H
#define CONV_LSTM_LAYER_H
#include "activations.h"
#include "layer.h"
#include "network.h"
#define USET
#ifdef __cplusplus
extern "C" {
#endif
layer make_conv_lstm_layer(int batch, int h, int w, int c, int output_filters, int groups, int steps, int size, int stride, int dilation, int pad, ACTIVATION activation, int batch_normalize, int peephole, int xnor, int bottleneck, int train);
void resize_conv_lstm_layer(layer *l, int w, int h);
void free_state_conv_lstm(layer l);
void randomize_state_conv_lstm(layer l);
void remember_state_conv_lstm(layer l);
void restore_state_conv_lstm(layer l);
void forward_conv_lstm_layer(layer l, network_state state);
void backward_conv_lstm_layer(layer l, network_state state);
void update_conv_lstm_layer(layer l, int batch, float learning_rate, float momentum, float decay);
layer make_history_layer(int batch, int h, int w, int c, int history_size, int steps, int train);
void forward_history_layer(layer l, network_state state);
void backward_history_layer(layer l, network_state state);
#ifdef GPU
void forward_conv_lstm_layer_gpu(layer l, network_state state);
void backward_conv_lstm_layer_gpu(layer l, network_state state);
void update_conv_lstm_layer_gpu(layer l, int batch, float learning_rate, float momentum, float decay, float loss_scale);
void forward_history_layer_gpu(const layer l, network_state state);
void backward_history_layer_gpu(const layer l, network_state state);
#endif
#ifdef __cplusplus
}
#endif
#endif // CONV_LSTM_LAYER_H