Сначала вы должны назвать все свои слои x
, но называть их именами как dense_1
Я не понимаю, что вы хотите, но, может быть, такие вещи
# this is my current model
# build some new layers
in_ = Input(shape=(32,))
dense_1 = Dense(64, activation='relu')(in_)
dense_2 = Dense(64, activation='relu')(dense_1)
dense_3 = Dense(64, activation='relu')(dense_2)
dense_4 = Dense(1, activation='sigmoid', name='main_output')(dense_3)
model = Model(inputs=[m1_in, aux_in, in_], outputs=[dense_4])
или последняя строка
model = Model(inputs=[in_], outputs=[dense_4])
Но вы должны быть более конкретным?