From e6c97a53a7b5ac4014d30d236ea2bf5adb4bb521 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 07 Aug 2018 20:19:50 +0000
Subject: [PATCH] Maxpool fixes
---
src/softmax_layer.h | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/softmax_layer.h b/src/softmax_layer.h
index 1a0d760..821a8dd 100644
--- a/src/softmax_layer.h
+++ b/src/softmax_layer.h
@@ -1,14 +1,19 @@
#ifndef SOFTMAX_LAYER_H
#define SOFTMAX_LAYER_H
+#include "layer.h"
+#include "network.h"
-typedef struct {
- int inputs;
- double *delta;
- double *output;
-} softmax_layer;
+typedef layer softmax_layer;
-softmax_layer *make_softmax_layer(int inputs);
-void forward_softmax_layer(const softmax_layer layer, double *input);
-void backward_softmax_layer(const softmax_layer layer, double *input, double *delta);
+void softmax_array(float *input, int n, float temp, float *output);
+softmax_layer make_softmax_layer(int batch, int inputs, int groups);
+void forward_softmax_layer(const softmax_layer l, network_state state);
+void backward_softmax_layer(const softmax_layer l, network_state state);
+
+#ifdef GPU
+void pull_softmax_layer_output(const softmax_layer l);
+void forward_softmax_layer_gpu(const softmax_layer l, network_state state);
+void backward_softmax_layer_gpu(const softmax_layer l, network_state state);
+#endif
#endif
--
Gitblit v1.10.0