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
相关文章
相关标签/搜索