From 354b0cbdcb48a66de1af3aca9fc2f5687e46ee42 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Sat, 19 Apr 2014 20:10:59 +0000
Subject: [PATCH] GPU flag in Makefile
---
src/activations.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/activations.h b/src/activations.h
index 15d96d3..9474121 100644
--- a/src/activations.h
+++ b/src/activations.h
@@ -2,13 +2,14 @@
#define ACTIVATIONS_H
typedef enum{
- SIGMOID, RELU, IDENTITY, RAMP
+ SIGMOID, RELU, LINEAR, RAMP, TANH
}ACTIVATION;
ACTIVATION get_activation(char *s);
-double activate(double x, ACTIVATION a);
-double gradient(double x, ACTIVATION a);
+char *get_activation_string(ACTIVATION a);
+float activate(float x, ACTIVATION a);
+float gradient(float x, ACTIVATION a);
#endif
--
Gitblit v1.10.0