![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Original Version of STM Board
Diff: setting.h
- Revision:
- 173:68c7914679ec
- Parent:
- 171:bfc1fd2629d8
- Child:
- 177:8e9cf31d63f4
diff -r 63af34265fe9 -r 68c7914679ec setting.h --- a/setting.h Sat Nov 21 07:25:32 2020 +0000 +++ b/setting.h Tue Nov 24 05:19:59 2020 +0000 @@ -468,7 +468,8 @@ #define num_epoch 1 #define batch_size 50 #define num_input_RL 2 -#define num_hidden_unit 10 +#define num_hidden_unit1 10 +#define num_hidden_unit2 10 extern int batch; extern float train_set_x[batch_size]; @@ -480,6 +481,7 @@ extern float td_target[batch_size]; extern float delta[batch_size]; extern float advantage[batch_size]; +extern float return_G[batch_size]; extern float mean; extern float deviation; @@ -493,6 +495,21 @@ extern float mean_array_old[batch_size]; extern float deviation_array[batch_size]; extern float deviation_array_old[batch_size]; + +extern float hx_c_sum[num_hidden_unit1]; +extern float hx_c_sum_array[batch_size][num_hidden_unit1]; +extern float hxh_c_sum[num_hidden_unit2]; +extern float hxh_c_sum_array[batch_size][num_hidden_unit2]; +extern float hxhh_c_sum; +extern float hxhh_c_sum_array[batch_size]; + +extern float hx_a_sum[num_hidden_unit1]; +extern float hx_a_sum_array[batch_size][num_hidden_unit1]; +extern float hxh_a_sum[num_hidden_unit2]; +extern float hxh_a_sum_array[batch_size][num_hidden_unit2]; +extern float hxhh_a_sum[2]; +extern float hxhh_a_sum_array[batch_size][2]; + extern float action; extern float action_array[batch_size]; extern float ratio[batch_size];