Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: function_utilities/function_utilities.cpp
- Revision:
- 173:68c7914679ec
- Parent:
- 170:42c938a40313
- Child:
- 174:c828479f53f9
--- a/function_utilities/function_utilities.cpp Sat Nov 21 07:25:32 2020 +0000
+++ b/function_utilities/function_utilities.cpp Tue Nov 24 05:19:59 2020 +0000
@@ -362,6 +362,7 @@
float td_target[batch_size] = {0.0f};
float delta[batch_size] = {0.0f};
float advantage[batch_size] = {0.0f};
+float return_G[batch_size] = {0.0f};
float mean = 0.0f;
float deviation = 0.0f;
float mean_old = 0.0f;
@@ -374,6 +375,21 @@
float mean_array_old[batch_size] = {0.0f};
float deviation_array[batch_size] = {0.0f};
float deviation_array_old[batch_size] = {0.0f};
+
+float hx_c_sum[num_hidden_unit1] = {0.0f};
+float hx_c_sum_array[batch_size][num_hidden_unit1] = {0.0f};
+float hxh_c_sum[num_hidden_unit2] = {0.0f};
+float hxh_c_sum_array[batch_size][num_hidden_unit2] = {0.0f};
+float hxhh_c_sum = 0.0f;
+float hxhh_c_sum_array[batch_size] = {0.0f};
+
+float hx_a_sum[num_hidden_unit1] = {0.0f};
+float hx_a_sum_array[batch_size][num_hidden_unit1] = {0.0f};
+float hxh_a_sum[num_hidden_unit2] = {0.0f};
+float hxh_a_sum_array[batch_size][num_hidden_unit2] = {0.0f};
+float hxhh_a_sum[2] = {0.0f};
+float hxhh_a_sum_array[batch_size][2] = {0.0f};
+
float action = 0.0f;
float action_array[batch_size] = {0.0f};
float ratio[batch_size] = {1.0f};