2015-05-08 20:37:39 +03:00
|
|
|
#ifndef ROUTE_LAYER_H
|
|
|
|
#define ROUTE_LAYER_H
|
|
|
|
#include "network.h"
|
2015-05-11 23:46:49 +03:00
|
|
|
#include "layer.h"
|
2015-05-08 20:37:39 +03:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
typedef layer route_layer;
|
2015-05-08 20:37:39 +03:00
|
|
|
|
2015-05-11 23:46:49 +03:00
|
|
|
route_layer make_route_layer(int batch, int n, int *input_layers, int *input_size);
|
2017-04-10 05:56:42 +03:00
|
|
|
void forward_route_layer(const route_layer l, network net);
|
|
|
|
void backward_route_layer(const route_layer l, network net);
|
2016-11-16 09:53:58 +03:00
|
|
|
void resize_route_layer(route_layer *l, network *net);
|
2015-05-08 20:37:39 +03:00
|
|
|
|
|
|
|
#ifdef GPU
|
2017-04-10 05:56:42 +03:00
|
|
|
void forward_route_layer_gpu(const route_layer l, network net);
|
|
|
|
void backward_route_layer_gpu(const route_layer l, network net);
|
2015-05-08 20:37:39 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|