mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed bug in Tensor Cores V100 (1. Desc in Batch norm, 2. Manually selected algo).
Also fixed time measure on Linux for multi-threading.
This commit is contained in:
11
src/utils.c
11
src/utils.c
@ -7,13 +7,24 @@
|
||||
#include <limits.h>
|
||||
#ifdef WIN32
|
||||
#include "unistd.h"
|
||||
#include "gettimeofday.h"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include "utils.h"
|
||||
|
||||
#pragma warning(disable: 4996)
|
||||
|
||||
double what_time_is_it_now()
|
||||
{
|
||||
struct timeval time;
|
||||
if (gettimeofday(&time, NULL)) {
|
||||
return 0;
|
||||
}
|
||||
return (double)time.tv_sec + (double)time.tv_usec * .000001;
|
||||
}
|
||||
|
||||
int *read_map(char *filename)
|
||||
{
|
||||
int n = 0;
|
||||
|
Reference in New Issue
Block a user