I have a model like this with multiple outputs and i want to change it's output names
class MyModel(Model):
def __init__(self):
super(MyModel, self).__init__()
self.layer_one = Dense(1, name='output_name_one')
self.layer_two = Dense(1, name='output_name_two')
def call(self, inputs):
output_name_one = self.layer_one(inputs)
output_name_two = self.layer_two(inputs)
return output_name_one, output_name_two
keras automatically set output names to output_1, output_2, ...
how can i change the output names to my desired names?
output_1, output_2, ...
i checked it in kaggle notebook and even in my local computer and i have this issue in both cases. @It'sRecreational $\endgroup$output_1
andoutput_2
? When you instantiatemodel = MyModel()
and callmodel.summary()
? Or in another context? If you can provide more details about your setup and what precise code is yielding output that is unintended, I can try to be of more help. $\endgroup$