aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-19 18:59:22 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-19 18:59:30 -0700
commit6155633318d648ce6ad9567ad5163bd9fc763454 (patch)
treeeb0d3c10d39d6f6acd954c67114322d732ef672d /tensorflow/docs_src
parent77c7b1112210beb3f0752f206bfa519f22aaf5c6 (diff)
parent694dd61fcdfb2019af3e28b4151d93bdd690c94a (diff)
Merge pull request #20957 from cheerss:master
PiperOrigin-RevId: 205338870
Diffstat (limited to 'tensorflow/docs_src')
-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