File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 5
5
#include "postcnn_io.h"
6
6
#include "conv1d.h"
7
7
#include "dscnn.h"
8
- #include "conv_utils.h"
9
8
10
9
ConvLayers_Params depth_param_2 = {
11
10
.W = CNN2_DEPTH_W ,
@@ -111,7 +110,7 @@ int main(){
111
110
free (cnn4_out );
112
111
113
112
if (out_T != O_T ){
114
- printf ("Error Error , Estimatd Output and Actual ouput teim axis mis-match" );
113
+ printf ("Error, Estimatd Output and Actual ouput teim axis mis-match" );
115
114
return 0 ;
116
115
}
117
116
Original file line number Diff line number Diff line change 5
5
#include "rnn_params.h"
6
6
#include "fastgrnn.h"
7
7
#include "utils.h"
8
- // #include"dscnn.h"
9
- // #include"conv_utils.h"
10
8
11
9
int main (){
12
10
@@ -49,19 +47,11 @@ int main(){
49
47
& RNN_params , & buffers , 0 , 0 );
50
48
memcpy (pred + (t * O_F ), temp_hiddenstate , O_F * sizeof (float ));
51
49
}
52
-
53
- // fastgrnn_lr(pred, O_F,
54
- // INPUT, I_F, I_T,
55
- // &RNN_params, &buffers, 0, 0);
56
-
57
- // Calculate Error(Aggregate Squared and Mean Squared)
50
+ free (temp_hiddenstate );
58
51
float error = 0 , denom = 0 ;
59
52
for (int t = 0 ; t < O_T ; t ++ ){
60
53
for (int d = 0 ; d < O_F ; d ++ ){
61
54
error += ((pred [t * O_F + d ] - OUTPUT [t * O_F + d ]) * (pred [t * O_F + d ] - OUTPUT [t * O_F + d ]));
62
- // printf("%f %f\t", pred[t * O_F + d], OUTPUT[t * O_F + d]);
63
- // error += ((pred[d] - OUTPUT[t * O_F + d]) * (pred[d] - OUTPUT[t * O_F + d]));
64
- // printf("%f %f\n", pred[d], OUTPUT[t * O_F + d]);
65
55
denom += OUTPUT [t * O_F + d ] * OUTPUT [t * O_F + d ];
66
56
}
67
57
}
You can’t perform that action at this time.
0 commit comments