From 84d6533cb8112f23a34d3de76435a10f4620f4b8 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 23 Oct 2017 13:43:03 +0000
Subject: [PATCH] Fixed OpenCV usage in the yolo_console_dll.cpp
---
src/dropout_layer.h | 27 ++++++++++-----------------
1 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/src/dropout_layer.h b/src/dropout_layer.h
index d12d4a1..691cfc5 100644
--- a/src/dropout_layer.h
+++ b/src/dropout_layer.h
@@ -1,27 +1,20 @@
#ifndef DROPOUT_LAYER_H
#define DROPOUT_LAYER_H
-#include "params.h"
-typedef struct{
- int batch;
- int inputs;
- float probability;
- float scale;
- float *rand;
- #ifdef GPU
- float * rand_gpu;
- #endif
-} dropout_layer;
+#include "layer.h"
+#include "network.h"
-dropout_layer *make_dropout_layer(int batch, int inputs, float probability);
+typedef layer dropout_layer;
-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);
+dropout_layer make_dropout_layer(int batch, int inputs, float probability);
+
+void forward_dropout_layer(dropout_layer l, network_state state);
+void backward_dropout_layer(dropout_layer l, network_state state);
+void resize_dropout_layer(dropout_layer *l, int inputs);
#ifdef GPU
-void forward_dropout_layer_gpu(dropout_layer layer, network_state state);
-void backward_dropout_layer_gpu(dropout_layer layer, network_state state);
+void forward_dropout_layer_gpu(dropout_layer l, network_state state);
+void backward_dropout_layer_gpu(dropout_layer l, network_state state);
#endif
#endif
--
Gitblit v1.10.0