已经训练好的model,比如想在后面再添加lstm或者全连接层应该怎么做呢?
1.先加载已经训练好的模型modelmodel = tf.keras.models.load_model('model.h5')2.在model中添加层model.add(layers.Dense(4))