--
You received this message because you are subscribed to the Google Groups "TensorFlow Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/developers/CALWiF1syWS%3DEw3E-irYnBEu%2BzJG%3D5qz9CtkVosWoXK%2Bn8EFoAA%40mail.gmail.com.
After looking further into this I have couple of questions about Layer.from_config:
Basically, I'm trying to somehow save the layer configs together with the SavedModel data in order to easily restore it as a python object. What I'm finding is that first I need a way to associate each layer to its config (since there might be an arbitrary number of sublayers in the SavedModel, each with its own config). Then I need to be able to run Layer.from_config on each of the sublayers to get the hierarchy of python objects back, keeping in mind that a same sublayer might be referenced multiple times by others (DAG case).
Any suggestions about how this could be done?
Thanks!
--
You received this message because you are subscribed to the Google Groups "TensorFlow Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/developers/CALWiF1vJPgxr%2BLS6W-0r3BCqC57_F6CH8o8XYvUAbOo9i%2BUnAw%40mail.gmail.com.
After looking further into this I have couple of questions about Layer.from_config:
- How can Layer.from_config be used to create a python object that uses the TF variables/functions/etc. loaded from a SavedModel? The docs claim it provides serialization, but it's not that clear how the TF graph elements are reused under the hood. For all I know it could be creating a new identical layer with new weights.
- If the SavedModel contained sublayers, how can the above be done for each sublayer recursively?
Basically, I'm trying to somehow save the layer configs together with the SavedModel data in order to easily restore it as a python object. What I'm finding is that first I need a way to associate each layer to its config (since there might be an arbitrary number of sublayers in the SavedModel, each with its own config). Then I need to be able to run Layer.from_config on each of the sublayers to get the hierarchy of python objects back, keeping in mind that a same sublayer might be referenced multiple times by others (DAG case).
Any suggestions about how this could be done?
Thanks!