From f7a17f82eb43de864a4f980f235055da9685eef8 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Wed, 29 Jan 2014 00:28:42 +0000
Subject: [PATCH] Convolutional layers working w/ matrices

---
 src/activations.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/activations.c b/src/activations.c
index b8bb79d..cc923d0 100644
--- a/src/activations.c
+++ b/src/activations.c
@@ -15,7 +15,7 @@
     return RELU;
 }
 
-double activate(double x, ACTIVATION a){
+float activate(float x, ACTIVATION a){
     switch(a){
         case LINEAR:
             return x;
@@ -30,7 +30,7 @@
     }
     return 0;
 }
-double gradient(double x, ACTIVATION a){
+float gradient(float x, ACTIVATION a){
     switch(a){
         case LINEAR:
             return 1;

--
Gitblit v1.10.0