From 158bb1bee9951875dbe3474d84c6663431e18301 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 21 Oct 2014 21:49:18 +0000
Subject: [PATCH] softmax on gpu

---
 src/utils.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/utils.c b/src/utils.c
index 8a65ba7..a883ad8 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -4,6 +4,11 @@
 #include <string.h>
 #include <math.h>
 
+float sec(clock_t clocks)
+{
+    return (float)clocks/CLOCKS_PER_SEC;
+}
+
 void error(char *s)
 {
     fprintf(stderr, "Error: %s\n", s);

--
Gitblit v1.10.0