From b13ad6d5fd23f68f506c14ede4282126d893702b Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Wed, 05 Nov 2014 22:49:58 +0000 Subject: [PATCH] Can validate on imagenet now --- src/utils.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index 6fe0343..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); @@ -21,8 +22,10 @@ float constrain(float a, float max); float rand_normal(); float rand_uniform(); +float sum_array(float *a, int n); 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