ValueError:Input 0 is incompatible with layer lstm_1: expected ndim=3,found ndim=2

基於Keras搭建CNN+LSTM模型對RNA和蛋白質作用對進行分類  在初始階段我直接將LSTM接在了CNN模型的下邊,但因爲此刻輸出的X.shape是(None,384),而LSTM需要三維的輸入,所以程序跳出:ValueError:Input 0 is incompatible with layer lstm_1: expected ndim=3,found ndim=2的錯誤,如下圖: 所
相關文章
相關標籤/搜索