AnswerBun.com

Adding an unused tensor to the model created with the Keras functional API (TensorFlow 2.0)

Stack Overflow Asked by Puk on November 18, 2020

I have some variables I would like to save in a Keras model so that when the model is saved to disk and later loaded, the variables are accessible from the model. However, the model itself doesn’t use these variables: they are intended as hints to the user about what the model does and how to use it.

With the Keras functional API, I don’t see an obvious way to do this. I could add a layer whose only function is to store these variables, but I think I would still need to connect it to the rest of the graph somehow so that it becomes part of the model. Is there a simple way to do this that I am missing, or do I need to use a different API or write these variables to a separate file?

Add your own answers!

Related Questions

What will this recursive function yield?

1  Asked on December 9, 2021 by user13812739

     

How to style Rebass Switch

5  Asked on December 9, 2021 by amaster

       

Redis Cluster Mode – replicas not working

1  Asked on December 9, 2021 by ramprakash

     

Disable seeking in mediaelement.js

1  Asked on December 9, 2021 by pelirrojo

         

Table not getting created sqlite android

4  Asked on December 9, 2021 by user3844417

   

Angularjs using JWT breaks CORS to Amazon S3 on login

2  Asked on December 9, 2021 by codephobia

     

Write a value with opc ua Python

2  Asked on December 9, 2021

   

unable to install vue chart.js in vue

2  Asked on December 9, 2021 by prabina-sht

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir