With the following code, I assume LSTM_cell will be repeated for 100 (Ty) times, but why does the model summary only show tens of times (from lstm_2[30][1] to lstm_2[79][1] )? I attached the model summary below the code. Could a more clear demonstration of the model structure be done with a picture or something? Actually, I kind of feel many explanations in course 5 are hard for me to follow. The logic is not as easy to understand as previous 4 courses for me.
{moderator edit - solution code removed}
Model: “functional_8”
Layer (type) Output Shape Param # Connected to
input_5 (InputLayer) [(None, 1, 90)] 0
a0 (InputLayer) [(None, 64)] 0
c0 (InputLayer) [(None, 64)] 0
lstm_2 (LSTM) [(None, 64), (None, 39680 input_5[0][0]
a0[0][0]
c0[0][0]
repeat_vector_50[0][0]
lstm_2[30][1]
lstm_2[30][2]
repeat_vector_51[0][0]
lstm_2[31][1]
lstm_2[31][2]
repeat_vector_52[0][0]
lstm_2[32][1]
lstm_2[32][2]
repeat_vector_53[0][0]
lstm_2[33][1]
lstm_2[33][2]
repeat_vector_54[0][0]
lstm_2[34][1]
lstm_2[34][2]
repeat_vector_55[0][0]
lstm_2[35][1]
lstm_2[35][2]
repeat_vector_56[0][0]
lstm_2[36][1]
lstm_2[36][2]
repeat_vector_57[0][0]
lstm_2[37][1]
lstm_2[37][2]
repeat_vector_58[0][0]
lstm_2[38][1]
lstm_2[38][2]
repeat_vector_59[0][0]
lstm_2[39][1]
lstm_2[39][2]
repeat_vector_60[0][0]
lstm_2[40][1]
lstm_2[40][2]
repeat_vector_61[0][0]
lstm_2[41][1]
lstm_2[41][2]
repeat_vector_62[0][0]
lstm_2[42][1]
lstm_2[42][2]
repeat_vector_63[0][0]
lstm_2[43][1]
lstm_2[43][2]
repeat_vector_64[0][0]
lstm_2[44][1]
lstm_2[44][2]
repeat_vector_65[0][0]
lstm_2[45][1]
lstm_2[45][2]
repeat_vector_66[0][0]
lstm_2[46][1]
lstm_2[46][2]
repeat_vector_67[0][0]
lstm_2[47][1]
lstm_2[47][2]
repeat_vector_68[0][0]
lstm_2[48][1]
lstm_2[48][2]
repeat_vector_69[0][0]
lstm_2[49][1]
lstm_2[49][2]
repeat_vector_70[0][0]
lstm_2[50][1]
lstm_2[50][2]
repeat_vector_71[0][0]
lstm_2[51][1]
lstm_2[51][2]
repeat_vector_72[0][0]
lstm_2[52][1]
lstm_2[52][2]
repeat_vector_73[0][0]
lstm_2[53][1]
lstm_2[53][2]
repeat_vector_74[0][0]
lstm_2[54][1]
lstm_2[54][2]
repeat_vector_75[0][0]
lstm_2[55][1]
lstm_2[55][2]
repeat_vector_76[0][0]
lstm_2[56][1]
lstm_2[56][2]
repeat_vector_77[0][0]
lstm_2[57][1]
lstm_2[57][2]
repeat_vector_78[0][0]
lstm_2[58][1]
lstm_2[58][2]
repeat_vector_79[0][0]
lstm_2[59][1]
lstm_2[59][2]
repeat_vector_80[0][0]
lstm_2[60][1]
lstm_2[60][2]
repeat_vector_81[0][0]
lstm_2[61][1]
lstm_2[61][2]
repeat_vector_82[0][0]
lstm_2[62][1]
lstm_2[62][2]
repeat_vector_83[0][0]
lstm_2[63][1]
lstm_2[63][2]
repeat_vector_84[0][0]
lstm_2[64][1]
lstm_2[64][2]
repeat_vector_85[0][0]
lstm_2[65][1]
lstm_2[65][2]
repeat_vector_86[0][0]
lstm_2[66][1]
lstm_2[66][2]
repeat_vector_87[0][0]
lstm_2[67][1]
lstm_2[67][2]
repeat_vector_88[0][0]
lstm_2[68][1]
lstm_2[68][2]
repeat_vector_89[0][0]
lstm_2[69][1]
lstm_2[69][2]
repeat_vector_90[0][0]
lstm_2[70][1]
lstm_2[70][2]
repeat_vector_91[0][0]
lstm_2[71][1]
lstm_2[71][2]
repeat_vector_92[0][0]
lstm_2[72][1]
lstm_2[72][2]
repeat_vector_93[0][0]
lstm_2[73][1]
lstm_2[73][2]
repeat_vector_94[0][0]
lstm_2[74][1]
lstm_2[74][2]
repeat_vector_95[0][0]
lstm_2[75][1]
lstm_2[75][2]
repeat_vector_96[0][0]
lstm_2[76][1]
lstm_2[76][2]
repeat_vector_97[0][0]
lstm_2[77][1]
lstm_2[77][2]
repeat_vector_98[0][0]
lstm_2[78][1]
lstm_2[78][2]
dense_2 (Dense) (None, 90) 5850 lstm_2[30][1]
lstm_2[31][1]
lstm_2[32][1]
lstm_2[33][1]
lstm_2[34][1]
lstm_2[35][1]
lstm_2[36][1]
lstm_2[37][1]
lstm_2[38][1]
lstm_2[39][1]
lstm_2[40][1]
lstm_2[41][1]
lstm_2[42][1]
lstm_2[43][1]
lstm_2[44][1]
lstm_2[45][1]
lstm_2[46][1]
lstm_2[47][1]
lstm_2[48][1]
lstm_2[49][1]
lstm_2[50][1]
lstm_2[51][1]
lstm_2[52][1]
lstm_2[53][1]
lstm_2[54][1]
lstm_2[55][1]
lstm_2[56][1]
lstm_2[57][1]
lstm_2[58][1]
lstm_2[59][1]
lstm_2[60][1]
lstm_2[61][1]
lstm_2[62][1]
lstm_2[63][1]
lstm_2[64][1]
lstm_2[65][1]
lstm_2[66][1]
lstm_2[67][1]
lstm_2[68][1]
lstm_2[69][1]
lstm_2[70][1]
lstm_2[71][1]
lstm_2[72][1]
lstm_2[73][1]
lstm_2[74][1]
lstm_2[75][1]
lstm_2[76][1]
lstm_2[77][1]
lstm_2[78][1]
lstm_2[79][1]
tf_op_layer_ArgMax_50 (TensorFl [(None,)] 0 dense_2[30][0]
tf_op_layer_OneHot_50 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_50[0][0]
repeat_vector_50 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_50[0][0]
tf_op_layer_ArgMax_51 (TensorFl [(None,)] 0 dense_2[31][0]
tf_op_layer_OneHot_51 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_51[0][0]
repeat_vector_51 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_51[0][0]
tf_op_layer_ArgMax_52 (TensorFl [(None,)] 0 dense_2[32][0]
tf_op_layer_OneHot_52 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_52[0][0]
repeat_vector_52 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_52[0][0]
tf_op_layer_ArgMax_53 (TensorFl [(None,)] 0 dense_2[33][0]
tf_op_layer_OneHot_53 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_53[0][0]
repeat_vector_53 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_53[0][0]
tf_op_layer_ArgMax_54 (TensorFl [(None,)] 0 dense_2[34][0]
tf_op_layer_OneHot_54 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_54[0][0]
repeat_vector_54 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_54[0][0]
tf_op_layer_ArgMax_55 (TensorFl [(None,)] 0 dense_2[35][0]
tf_op_layer_OneHot_55 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_55[0][0]
repeat_vector_55 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_55[0][0]
tf_op_layer_ArgMax_56 (TensorFl [(None,)] 0 dense_2[36][0]
tf_op_layer_OneHot_56 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_56[0][0]
repeat_vector_56 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_56[0][0]
tf_op_layer_ArgMax_57 (TensorFl [(None,)] 0 dense_2[37][0]
tf_op_layer_OneHot_57 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_57[0][0]
repeat_vector_57 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_57[0][0]
tf_op_layer_ArgMax_58 (TensorFl [(None,)] 0 dense_2[38][0]
tf_op_layer_OneHot_58 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_58[0][0]
repeat_vector_58 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_58[0][0]
tf_op_layer_ArgMax_59 (TensorFl [(None,)] 0 dense_2[39][0]
tf_op_layer_OneHot_59 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_59[0][0]
repeat_vector_59 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_59[0][0]
tf_op_layer_ArgMax_60 (TensorFl [(None,)] 0 dense_2[40][0]
tf_op_layer_OneHot_60 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_60[0][0]
repeat_vector_60 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_60[0][0]
tf_op_layer_ArgMax_61 (TensorFl [(None,)] 0 dense_2[41][0]
tf_op_layer_OneHot_61 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_61[0][0]
repeat_vector_61 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_61[0][0]
tf_op_layer_ArgMax_62 (TensorFl [(None,)] 0 dense_2[42][0]
tf_op_layer_OneHot_62 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_62[0][0]
repeat_vector_62 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_62[0][0]
tf_op_layer_ArgMax_63 (TensorFl [(None,)] 0 dense_2[43][0]
tf_op_layer_OneHot_63 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_63[0][0]
repeat_vector_63 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_63[0][0]
tf_op_layer_ArgMax_64 (TensorFl [(None,)] 0 dense_2[44][0]
tf_op_layer_OneHot_64 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_64[0][0]
repeat_vector_64 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_64[0][0]
tf_op_layer_ArgMax_65 (TensorFl [(None,)] 0 dense_2[45][0]
tf_op_layer_OneHot_65 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_65[0][0]
repeat_vector_65 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_65[0][0]
tf_op_layer_ArgMax_66 (TensorFl [(None,)] 0 dense_2[46][0]
tf_op_layer_OneHot_66 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_66[0][0]
repeat_vector_66 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_66[0][0]
tf_op_layer_ArgMax_67 (TensorFl [(None,)] 0 dense_2[47][0]
tf_op_layer_OneHot_67 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_67[0][0]
repeat_vector_67 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_67[0][0]
tf_op_layer_ArgMax_68 (TensorFl [(None,)] 0 dense_2[48][0]
tf_op_layer_OneHot_68 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_68[0][0]
repeat_vector_68 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_68[0][0]
tf_op_layer_ArgMax_69 (TensorFl [(None,)] 0 dense_2[49][0]
tf_op_layer_OneHot_69 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_69[0][0]
repeat_vector_69 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_69[0][0]
tf_op_layer_ArgMax_70 (TensorFl [(None,)] 0 dense_2[50][0]
tf_op_layer_OneHot_70 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_70[0][0]
repeat_vector_70 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_70[0][0]
tf_op_layer_ArgMax_71 (TensorFl [(None,)] 0 dense_2[51][0]
tf_op_layer_OneHot_71 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_71[0][0]
repeat_vector_71 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_71[0][0]
tf_op_layer_ArgMax_72 (TensorFl [(None,)] 0 dense_2[52][0]
tf_op_layer_OneHot_72 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_72[0][0]
repeat_vector_72 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_72[0][0]
tf_op_layer_ArgMax_73 (TensorFl [(None,)] 0 dense_2[53][0]
tf_op_layer_OneHot_73 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_73[0][0]
repeat_vector_73 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_73[0][0]
tf_op_layer_ArgMax_74 (TensorFl [(None,)] 0 dense_2[54][0]
tf_op_layer_OneHot_74 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_74[0][0]
repeat_vector_74 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_74[0][0]
tf_op_layer_ArgMax_75 (TensorFl [(None,)] 0 dense_2[55][0]
tf_op_layer_OneHot_75 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_75[0][0]
repeat_vector_75 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_75[0][0]
tf_op_layer_ArgMax_76 (TensorFl [(None,)] 0 dense_2[56][0]
tf_op_layer_OneHot_76 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_76[0][0]
repeat_vector_76 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_76[0][0]
tf_op_layer_ArgMax_77 (TensorFl [(None,)] 0 dense_2[57][0]
tf_op_layer_OneHot_77 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_77[0][0]
repeat_vector_77 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_77[0][0]
tf_op_layer_ArgMax_78 (TensorFl [(None,)] 0 dense_2[58][0]
tf_op_layer_OneHot_78 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_78[0][0]
repeat_vector_78 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_78[0][0]
tf_op_layer_ArgMax_79 (TensorFl [(None,)] 0 dense_2[59][0]
tf_op_layer_OneHot_79 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_79[0][0]
repeat_vector_79 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_79[0][0]
tf_op_layer_ArgMax_80 (TensorFl [(None,)] 0 dense_2[60][0]
tf_op_layer_OneHot_80 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_80[0][0]
repeat_vector_80 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_80[0][0]
tf_op_layer_ArgMax_81 (TensorFl [(None,)] 0 dense_2[61][0]
tf_op_layer_OneHot_81 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_81[0][0]
repeat_vector_81 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_81[0][0]
tf_op_layer_ArgMax_82 (TensorFl [(None,)] 0 dense_2[62][0]
tf_op_layer_OneHot_82 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_82[0][0]
repeat_vector_82 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_82[0][0]
tf_op_layer_ArgMax_83 (TensorFl [(None,)] 0 dense_2[63][0]
tf_op_layer_OneHot_83 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_83[0][0]
repeat_vector_83 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_83[0][0]
tf_op_layer_ArgMax_84 (TensorFl [(None,)] 0 dense_2[64][0]
tf_op_layer_OneHot_84 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_84[0][0]
repeat_vector_84 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_84[0][0]
tf_op_layer_ArgMax_85 (TensorFl [(None,)] 0 dense_2[65][0]
tf_op_layer_OneHot_85 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_85[0][0]
repeat_vector_85 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_85[0][0]
tf_op_layer_ArgMax_86 (TensorFl [(None,)] 0 dense_2[66][0]
tf_op_layer_OneHot_86 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_86[0][0]
repeat_vector_86 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_86[0][0]
tf_op_layer_ArgMax_87 (TensorFl [(None,)] 0 dense_2[67][0]
tf_op_layer_OneHot_87 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_87[0][0]
repeat_vector_87 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_87[0][0]
tf_op_layer_ArgMax_88 (TensorFl [(None,)] 0 dense_2[68][0]
tf_op_layer_OneHot_88 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_88[0][0]
repeat_vector_88 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_88[0][0]
tf_op_layer_ArgMax_89 (TensorFl [(None,)] 0 dense_2[69][0]
tf_op_layer_OneHot_89 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_89[0][0]
repeat_vector_89 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_89[0][0]
tf_op_layer_ArgMax_90 (TensorFl [(None,)] 0 dense_2[70][0]
tf_op_layer_OneHot_90 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_90[0][0]
repeat_vector_90 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_90[0][0]
tf_op_layer_ArgMax_91 (TensorFl [(None,)] 0 dense_2[71][0]
tf_op_layer_OneHot_91 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_91[0][0]
repeat_vector_91 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_91[0][0]
tf_op_layer_ArgMax_92 (TensorFl [(None,)] 0 dense_2[72][0]
tf_op_layer_OneHot_92 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_92[0][0]
repeat_vector_92 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_92[0][0]
tf_op_layer_ArgMax_93 (TensorFl [(None,)] 0 dense_2[73][0]
tf_op_layer_OneHot_93 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_93[0][0]
repeat_vector_93 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_93[0][0]
tf_op_layer_ArgMax_94 (TensorFl [(None,)] 0 dense_2[74][0]
tf_op_layer_OneHot_94 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_94[0][0]
repeat_vector_94 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_94[0][0]
tf_op_layer_ArgMax_95 (TensorFl [(None,)] 0 dense_2[75][0]
tf_op_layer_OneHot_95 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_95[0][0]
repeat_vector_95 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_95[0][0]
tf_op_layer_ArgMax_96 (TensorFl [(None,)] 0 dense_2[76][0]
tf_op_layer_OneHot_96 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_96[0][0]
repeat_vector_96 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_96[0][0]
tf_op_layer_ArgMax_97 (TensorFl [(None,)] 0 dense_2[77][0]
tf_op_layer_OneHot_97 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_97[0][0]
repeat_vector_97 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_97[0][0]
tf_op_layer_ArgMax_98 (TensorFl [(None,)] 0 dense_2[78][0]
tf_op_layer_OneHot_98 (TensorFl [(None, 90)] 0 tf_op_layer_ArgMax_98[0][0]
repeat_vector_98 (RepeatVector) (None, 1, 90) 0 tf_op_layer_OneHot_98[0][0]
Total params: 45,530
Trainable params: 45,530
Non-trainable params: 0