From 989ab8c38a02fa7ea9c25108151736c62e81c972 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 24 Apr 2015 17:27:50 +0000
Subject: [PATCH] IOU loss function
---
src/cuda.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/cuda.c b/src/cuda.c
index fb7485e..1b914a5 100644
--- a/src/cuda.c
+++ b/src/cuda.c
@@ -7,6 +7,7 @@
#include "blas.h"
#include "assert.h"
#include <stdlib.h>
+#include <time.h>
void check_error(cudaError_t status)
@@ -65,7 +66,7 @@
static int init = 0;
if(!init){
curandCreateGenerator(&gen, CURAND_RNG_PSEUDO_DEFAULT);
- curandSetPseudoRandomGeneratorSeed(gen, 0ULL);
+ curandSetPseudoRandomGeneratorSeed(gen, time(0));
init = 1;
}
curandGenerateUniform(gen, x_gpu, n);
--
Gitblit v1.10.0