How to name keras model based on functional api [solved]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to name keras model based on functional api [solved]



I know how to set name of keras model when used sequential but I don't know how to name a functional api based model.
Let me re-phrase, I am asking how to set name of a keras model not the layer
Please help if someone knows.



SOLVED



Well I experimented a little and it worked, so to name functional api based keras model, just pass the input in Model as follows:


functional api


keras


Model


Model(inputs=inputs, outputs=dense_out, name=name)





Please add an answer, don't add [solved] to the question. It is perfectly all right to answer your own question.
– heemayl
Aug 12 at 16:05


[solved]




1 Answer
1



Well I experimented a little and it worked, so to name functional api based keras model, just pass the input in Model as follows:


Model(inputs=inputs, outputs=dense_out, name=name)



and its name can be excessed in similar way we access sequential one i.e.


model.name



Naming models comes in handy when you are working with bunch of models and want to save them all as well.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard