tf.keras.models.model_from_json
Stay organized with collections
Save and categorize content based on your preferences.
Parses a JSON model configuration file and returns a model instance.
tf.keras.models.model_from_json(
json_string, custom_objects=None
)
Arguments |
json_string
|
JSON string encoding a model configuration.
|
custom_objects
|
Optional dictionary mapping names
(strings) to custom classes or functions to be
considered during deserialization.
|
Returns |
A Keras model instance (uncompiled).
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.keras.models.model_from_json\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/models/model_from_json) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/keras/saving/model_config.py#L81-L96) |\n\nParses a JSON model configuration file and returns a model instance.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.keras.models.model_from_json`](/api_docs/python/tf/keras/models/model_from_json)\n\n\u003cbr /\u003e\n\n tf.keras.models.model_from_json(\n json_string, custom_objects=None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Arguments --------- ||\n|------------------|---------------------------------------------------------------------------------------------------------------------|\n| `json_string` | JSON string encoding a model configuration. |\n| `custom_objects` | Optional dictionary mapping names (strings) to custom classes or functions to be considered during deserialization. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A Keras model instance (uncompiled). ||\n\n\u003cbr /\u003e"]]