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/maxpool_layer.h | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/maxpool_layer.h b/src/maxpool_layer.h
index 077bcfa..ce56dd8 100644
--- a/src/maxpool_layer.h
+++ b/src/maxpool_layer.h
@@ -2,14 +2,22 @@
#define MAXPOOL_LAYER_H
#include "image.h"
+#include "cuda.h"
+#include "layer.h"
+#include "network.h"
-typedef struct {
- int stride;
- image output;
-} maxpool_layer;
+typedef layer maxpool_layer;
-maxpool_layer make_maxpool_layer(int h, int w, int c, int stride);
-void run_maxpool_layer(const image input, const maxpool_layer layer);
+image get_maxpool_image(maxpool_layer l);
+maxpool_layer make_maxpool_layer(int batch, int h, int w, int c, int size, int stride, int padding);
+void resize_maxpool_layer(maxpool_layer *l, int w, int h);
+void forward_maxpool_layer(const maxpool_layer l, network_state state);
+void backward_maxpool_layer(const maxpool_layer l, network_state state);
+
+#ifdef GPU
+void forward_maxpool_layer_gpu(maxpool_layer l, network_state state);
+void backward_maxpool_layer_gpu(maxpool_layer l, network_state state);
+#endif
#endif
--
Gitblit v1.10.0