diff options
Diffstat (limited to 'neural.c')
-rw-r--r-- | neural.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -104,8 +104,6 @@ static void zero_changes(); static void randomize_wts(); static int read_data_file(); -static double results; - /*********** ** DoNNet ** ************ @@ -115,7 +113,7 @@ static double results; ** should be on the local directory (from which the ** benchmark program in launched). */ -void +double DoNNET(void) { /* const char* context="CPU:NNET"; */ /* Since we never fprintf errors here, we don't need this */ @@ -167,7 +165,7 @@ DoNNET(void) iterations += loops; } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC); - results = (double)(iterations * CLOCKS_PER_SEC) / total_time; + return (double)(iterations * CLOCKS_PER_SEC) / total_time; } /******************** @@ -323,7 +321,6 @@ static void do_forward_pass(int patt) do_mid_forward(patt); /* process forward pass, middle layer */ do_out_forward(); /* process forward pass, output layer */ /* display_output(patt); ** display results of forward pass */ -return; } /*********************** @@ -779,9 +776,3 @@ for (patt=0; patt<numpats; patt++) fclose(infile); return(0); } - -double -getNNETScore(void) -{ - return results; -} |