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.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index f38af33..49948f5 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,6 +1,7 @@ #ifndef UTILS_H #define UTILS_H #include <stdio.h> +#include <time.h> #include "list.h" void error(char *s); @@ -25,5 +26,6 @@ float mean_array(float *a, int n); float variance_array(float *a, int n); float **one_hot_encode(float *a, int n, int k); +float sec(clock_t clocks); #endif -- Gitblit v1.10.0