diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
commit | 66428e7f5a40e36d0129200dcc53e9459e1d0a9b (patch) | |
tree | 23148c8f9b5f2d20672d6995c920e1d06d442874 /neural.c | |
parent | 0a0699aba70c04e3e6c5847b47cee75025e96255 (diff) |
-- Remove getScore functions
-- Replace by making Do* functions return the results directly
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@61 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
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; -} |