aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src/guide/keras.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/docs_src/guide/keras.md')
-rw-r--r--tensorflow/docs_src/guide/keras.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/docs_src/guide/keras.md b/tensorflow/docs_src/guide/keras.md
index 1d846df104..2330fa03c7 100644
--- a/tensorflow/docs_src/guide/keras.md
+++ b/tensorflow/docs_src/guide/keras.md
@@ -467,13 +467,13 @@ JSON and YAML serialization formats:
json_string = model.to_json()
# Recreate the model (freshly initialized)
-fresh_model = keras.models.from_json(json_string)
+fresh_model = keras.models.model_from_json(json_string)
# Serializes a model to YAML format
yaml_string = model.to_yaml()
# Recreate the model
-fresh_model = keras.models.from_yaml(yaml_string)
+fresh_model = keras.models.model_from_yaml(yaml_string)
```
Caution: Subclassed models are not serializable because their architecture is