序贯式模型可以使用 model = Sequential() model.add
函数式模型 因为包含分支 要用到 像这样的: r_layer1 = LSTM(32,return_sequences = True)(input) 好处:便于模型融合(merge,concatenate)