From dcb000b553d051429a49c8729dc5b1af632e8532 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 12 Mar 2015 05:20:15 +0000
Subject: [PATCH] refactoring and added DARK ZONE
---
src/dropout_layer.h | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/dropout_layer.h b/src/dropout_layer.h
index 051ce47..d12d4a1 100644
--- a/src/dropout_layer.h
+++ b/src/dropout_layer.h
@@ -1,5 +1,6 @@
#ifndef DROPOUT_LAYER_H
#define DROPOUT_LAYER_H
+#include "params.h"
typedef struct{
int batch;
@@ -7,22 +8,20 @@
float probability;
float scale;
float *rand;
- float *output;
#ifdef GPU
float * rand_gpu;
- float * output_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, float * input);
-void backward_dropout_layer_gpu(dropout_layer layer, float * 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