From 787d5345609459f21fd65d2d8b4fcd55201e21a1 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Mon, 13 Oct 2014 07:31:10 +0000 Subject: [PATCH] Convolutional working on GPU --- src/convolutional_layer.h | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/convolutional_layer.h b/src/convolutional_layer.h index cf897a7..465d309 100644 --- a/src/convolutional_layer.h +++ b/src/convolutional_layer.h @@ -1,10 +1,7 @@ #ifndef CONVOLUTIONAL_LAYER_H #define CONVOLUTIONAL_LAYER_H -#ifdef GPU #include "opencl.h" -#endif - #include "image.h" #include "activations.h" @@ -51,6 +48,7 @@ #ifdef GPU void forward_convolutional_layer_gpu(convolutional_layer layer, cl_mem in); void backward_convolutional_layer_gpu(convolutional_layer layer, cl_mem delta_cl); +void update_convolutional_layer_gpu(convolutional_layer layer); #endif convolutional_layer *make_convolutional_layer(int batch, int h, int w, int c, int n, int size, int stride, int pad, ACTIVATION activation, float learning_rate, float momentum, float decay); -- Gitblit v1.10.0