You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
977 B
35 lines
977 B
#ifndef LOCAL_LAYER_H
|
|
#define LOCAL_LAYER_H
|
|
|
|
#include "dn_cuda.h"
|
|
#include "image.h"
|
|
#include "activations.h"
|
|
#include "layer.h"
|
|
#include "network.h"
|
|
|
|
namespace DN{
|
|
|
|
typedef layer local_layer;
|
|
|
|
#ifdef GPU
|
|
void forward_local_layer_gpu(local_layer layer, network net);
|
|
void backward_local_layer_gpu(local_layer layer, network net);
|
|
void update_local_layer_gpu(local_layer layer, update_args a);
|
|
|
|
void push_local_layer(local_layer layer);
|
|
void pull_local_layer(local_layer layer);
|
|
#endif
|
|
|
|
local_layer make_local_layer(int batch, int h, int w, int c, int n, int size, int stride, int pad, ACTIVATION activation);
|
|
|
|
void forward_local_layer(const local_layer layer, network net);
|
|
void backward_local_layer(local_layer layer, network net);
|
|
void update_local_layer(local_layer layer, update_args a);
|
|
|
|
void bias_output(float *output, float *biases, int batch, int n, int size);
|
|
void backward_bias(float *bias_updates, float *delta, int batch, int n, int size);
|
|
|
|
};
|
|
|
|
#endif
|
|
|