![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LIGHT2
Diff: main.cpp
- Revision:
- 174:c828479f53f9
- Parent:
- 173:68c7914679ec
- Child:
- 175:2f7289dbd488
diff -r 68c7914679ec -r c828479f53f9 main.cpp --- a/main.cpp Tue Nov 24 05:19:59 2020 +0000 +++ b/main.cpp Tue Nov 24 06:09:50 2020 +0000 @@ -323,7 +323,7 @@ } for (int index2 = 0; index2 < num_hidden_unit2; index2++) { for (int index1 = 0; index1 < num_hidden_unit1; index1++) { - output2[index2] = output2[index2] + hc2[index1][index2] * arr[index1]; + output2[index2] = output2[index2] + hc2[index1][index2] * output1[index1]; } //ReLU output2[index2] = output2[index2] + bc2[index2]; @@ -364,7 +364,7 @@ } for (int index2 = 0; index2 < num_hidden_unit2; index2++) { for (int index1 = 0; index1 < num_hidden_unit1; index1++) { - output2[index2] = output2[index2] + hc2_temp[index1][index2] * arr[index1]; + output2[index2] = output2[index2] + hc2_temp[index1][index2] * output1[index1]; } //ReLU output2[index2] = output2[index2] + bc2_temp[index2]; @@ -404,7 +404,7 @@ } for (int index2 = 0; index2 < num_hidden_unit2; index2++) { for (int index1 = 0; index1 < num_hidden_unit1; index1++) { - output2[index2] = output2[index2] + ha2[index1][index2] * arr[index1]; + output2[index2] = output2[index2] + ha2[index1][index2] * output1[index1]; } output2[index2] = output2[index2] + ba2[index2]; hxh_a_sum[index2] = output2[index2]; @@ -445,7 +445,7 @@ } for (int index2 = 0; index2 < num_hidden_unit2; index2++) { for (int index1 = 0; index1 < num_hidden_unit1; index1++) { - output2[index2] = output2[index2] + ha2[index1][index2] * arr[index1]; + output2[index2] = output2[index2] + ha2[index1][index2] * output1[index1]; } output2[index2] = output2[index2] + ba2[index2]; if (output2[index2] < 0) {