做以下条件的意思是一样的。据我所知,我认为它们是相同的。请指导我。
def Model_a():
return Model(inputs=inputs, outputs=outputs, name='Model1')
def Model_b():
return Model(inputs=inputs, outputs=outputs, name='Model2')
def Model_1(Model_a, Model_b):
return Model(inputs=inputs, outputs=[output1,output2])
def Model_2(Model_a, Model_b):
return Model(inputs=inputs, outputs=outputs)
#Condition 1
Model_1.train_on_batch(x,[y,z])
#Condition 2
Model_2.train_on_batch(x,z)
Model_b.train_on_batch(x,y)