在用Keras框架搭建网络时
在LSTM层之后的Attention层总是报输入维度错误,后来在LSTM层中加入return_sequence=True(默认为False)参数后解决
有空再详细探查这个参数