conv1out = conv1(input1) gru1out = CuDNNGRU(64)(conv1out) gru1out = Dropout(config.dropout)(gru1out) att

动态 未结 0 104
小小草
小小草 LV1 2023年9月23日 23:40 发表
This error occurs when the index being accessed is out of range for the tuple. In this case, it seems that the error is occurring in the line: ``` attn1_out = LayerNormalization()(attn1_out + gru1out) ``` It's possible that `attn1_out` and `gru1out` have different shapes or dimensions, causing an indexing error when trying to add them together. To fix this error, you can try printing the shapes of `attn1_out` and `gru1out` before the line above to see if they match. If they don't match, you may need to reshape or transpose one of the tensors to match the other.
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复