Keras Bi-lstm 報錯AttributeError:'Tensor' object has no attribute 'get_config' 如何用Keras實現雙向LSTM

已知單向LSTM能夠經過如下兩行命令獲取 x = Embedding(max_features, embedding_dims, input_length=maxlen)(input_layer) ​​​​​​​lstm_layer=LSTM(128)(x) 後想將lstm換成bi-lstm,也可直接調用下述包來實現: from keras.layers import Bidirectiona
相關文章
相關標籤/搜索