0

我正在研究连体神经网络,我发现的只是 CNN 和 LSTM 的示例,如下所示:

shared_model = x

left_input = Input(shape=(max_seq_length,), dtype='int32')
right_input = Input(shape=(max_seq_length,), dtype='int32')

malstm_distance = ManDist()([shared_model(left_input), shared_model(right_input)])
model = Model(inputs=[left_input, right_input], outputs=[malstm_distance])

我很好奇是否可以用一些密集层替换 LSTM 层以使其成为连体多层感知器?

4

0 回答 0