From 168af40fe9a3cc81c6ee16b3e81f154780c36bdb Mon Sep 17 00:00:00 2001 From: Scheaven <xuepengqiang> Date: 星期四, 03 六月 2021 15:03:27 +0800 Subject: [PATCH] up new v4 --- lib/detecter_tools/darknet/local_layer.h | 74 ++++++++++++++++++------------------ 1 files changed, 37 insertions(+), 37 deletions(-) diff --git a/lib/detecter_tools/darknet/local_layer.h b/lib/detecter_tools/darknet/local_layer.h index fc8e10e..45e02a5 100644 --- a/lib/detecter_tools/darknet/local_layer.h +++ b/lib/detecter_tools/darknet/local_layer.h @@ -1,37 +1,37 @@ -#ifndef LOCAL_LAYER_H -#define LOCAL_LAYER_H - -#include "dark_cuda.h" -#include "image.h" -#include "activations.h" -#include "layer.h" -#include "network.h" - -typedef layer local_layer; - -#ifdef __cplusplus -extern "C" { -#endif -#ifdef GPU -void forward_local_layer_gpu(local_layer layer, network_state state); -void backward_local_layer_gpu(local_layer layer, network_state state); -void update_local_layer_gpu(local_layer layer, int batch, float learning_rate, float momentum, float decay, float loss_scale); - -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_state state); -void backward_local_layer(local_layer layer, network_state state); -void update_local_layer(local_layer layer, int batch, float learning_rate, float momentum, float decay); - -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); - -#ifdef __cplusplus -} -#endif - -#endif +#ifndef LOCAL_LAYER_H +#define LOCAL_LAYER_H + +#include "dark_cuda.h" +#include "image.h" +#include "activations.h" +#include "layer.h" +#include "network.h" + +typedef layer local_layer; + +#ifdef __cplusplus +extern "C" { +#endif +#ifdef GPU +void forward_local_layer_gpu(local_layer layer, network_state state); +void backward_local_layer_gpu(local_layer layer, network_state state); +void update_local_layer_gpu(local_layer layer, int batch, float learning_rate, float momentum, float decay, float loss_scale); + +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_state state); +void backward_local_layer(local_layer layer, network_state state); +void update_local_layer(local_layer layer, int batch, float learning_rate, float momentum, float decay); + +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); + +#ifdef __cplusplus +} +#endif + +#endif -- Gitblit v1.8.0