From 451ef0a0a6b595bb8e4a945633659b4d31f0a372 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 20 Apr 2015 15:46:12 +0000
Subject: [PATCH] It's time, to du-du-du-du-DU-DU-DUEL!! https://www.youtube.com/watch?v=IVmtUK_1jh4

---
 src/dropout_layer.h |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/dropout_layer.h b/src/dropout_layer.h
index 12a819e..d12d4a1 100644
--- a/src/dropout_layer.h
+++ b/src/dropout_layer.h
@@ -1,6 +1,6 @@
 #ifndef DROPOUT_LAYER_H
 #define DROPOUT_LAYER_H
-#include "opencl.h"
+#include "params.h"
 
 typedef struct{
     int batch;
@@ -8,21 +8,20 @@
     float probability;
     float scale;
     float *rand;
-    float *output;
     #ifdef GPU
-    cl_mem rand_cl;
-    cl_mem output_cl;
+    float * rand_gpu;
     #endif
 } dropout_layer;
 
 dropout_layer *make_dropout_layer(int batch, int inputs, float probability);
 
-void forward_dropout_layer(dropout_layer layer, float *input);
-void backward_dropout_layer(dropout_layer layer, float *delta);
+void forward_dropout_layer(dropout_layer layer, network_state state);
+void backward_dropout_layer(dropout_layer layer, network_state state);
+void resize_dropout_layer(dropout_layer *layer, int inputs);
 
 #ifdef GPU
-void forward_dropout_layer_gpu(dropout_layer layer, cl_mem input);
-void backward_dropout_layer_gpu(dropout_layer layer, cl_mem delta);
+void forward_dropout_layer_gpu(dropout_layer layer, network_state state);
+void backward_dropout_layer_gpu(dropout_layer layer, network_state state);
 
 #endif
 #endif

--
Gitblit v1.10.0