Have a question? Connect with the community at the TensorFlow Forum Visit Forum

tf.keras.layers.serialize

<!-- Stable --> <table class="tfo-notebook-buttons tfo-api nocontent" align="left"> <td> <a target="_blank" href="/versions/r1.15/api_docs/python/tf/keras/layers/serialize"> <img src="https://www.tensorflow.org/images/tf_logo_32px.png" /> TensorFlow 1 version</a> </td> <td> <a target="_blank" href="https://github.com/tensorflow/tensorflow/blob/v2.5.0/tensorflow/python/keras/layers/serialization.py#L141-L143"> <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub </a> </td> </table> <section class="expandable"> <h4 class="showalways">View aliases</h4> <p> <b>Compat aliases for migration</b> <p>See <a href="https://www.tensorflow.org/guide/migrate">Migration guide</a> for more details.</p> <p>`tf.compat.v1.keras.layers.serialize`</p> </p> </section> <pre class="devsite-click-to-copy prettyprint lang-py tfo-signature-link"> <code>tf.keras.layers.serialize( layer ) </code></pre> <h3>Used in the notebooks</h3> <table class="vertical-rules"> <thead> <tr> <th>Used in the guide</th> </tr> </thead> <tbody> <tr> <td> <ul> <li><a href="https://www.tensorflow.org/guide/keras/save_and_serialize">Save and load Keras models</a></li> </ul> </td> </tr> </tbody> </table>