Skip to content

Commit

Permalink
Updated model.to_json() method in serialization_and_saving.py
Browse files Browse the repository at this point in the history
`tf.keras.models.model_to_json()` api is not available and it's not working also. It is a method of `tf.keras.model` api with the name of `model.to_json()`. Please check the attached replicated [gist](https://colab.sandbox.google.com/gist/RenuPatelGoogle/8d7fcf558a1f6276a6243619929f801b/model-to_json.ipynb) for the same.
  • Loading branch information
RenuPatelGoogle authored Jul 3, 2023
1 parent 98d30d0 commit 1dc0a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/serialization_and_saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def train_model(model):
- `keras.models.clone_model`
- `get_config()` and `from_config()`
- `keras.models.model_to_json()` and `keras.models.model_from_json()`
- `keras.model.to_json()` and `keras.models.model_from_json()`
"""

"""
Expand Down

0 comments on commit 1dc0a3f

Please sign in to comment.