lstm返回3个值
bilstm返回的是5个值
lstm = LSTM(100,return_sequences=True,return_state=True)
bilstm = Bidirectional(lstm , name = "bilstm")
bl_seq,last_h1,_ = lstm(mask)
bl_seq,last_h1,_,last_h2,_ = bilstm(mask)
lstm返回3个值
bilstm返回的是5个值
lstm = LSTM(100,return_sequences=True,return_state=True)
bilstm = Bidirectional(lstm , name = "bilstm")
bl_seq,last_h1,_ = lstm(mask)
bl_seq,last_h1,_,last_h2,_ = bilstm(mask)