Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Grammar mistakes #900

Merged
merged 4 commits into from
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/ipynb/serialization_and_saving.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@
"\n",
"In order to save/load a model with custom-defined layers, or a subclassed model,\n",
"you should overwrite the `get_config` and optionally `from_config` methods.\n",
"Additionally, you should use register the custom object so that Keras is aware of it.\n",
"Additionally, you should register the custom object so that Keras is aware of it.\n",
"\n",
"**Custom functions**\n",
"\n",
Expand Down Expand Up @@ -1341,4 +1341,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions guides/md/serialization_and_saving.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ but it's completely unsafe and means your model cannot be loaded on a different

In order to save/load a model with custom-defined layers, or a subclassed model,
you should overwrite the `get_config` and optionally `from_config` methods.
Additionally, you should use register the custom object so that Keras is aware of it.
Additionally, you should register the custom object so that Keras is aware of it.

**Custom functions**

Expand Down Expand Up @@ -1079,4 +1079,4 @@ Non-trainable params: 0
_________________________________________________________________

```
</div>
</div>
2 changes: 1 addition & 1 deletion guides/serialization_and_saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def from_config(cls, config):

In order to save/load a model with custom-defined layers, or a subclassed model,
you should overwrite the `get_config` and optionally `from_config` methods.
Additionally, you should use register the custom object so that Keras is aware of it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is indeed a typo -- please restrict the PR to this typo, and fix it in the md and ipynb files also. Thank you!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fchollet I have restricted the PR as mentioned above and fixed it in the md and ipynb files. Thank you!

Additionally, you should register the custom object so that Keras is aware of it.

**Custom functions**

Expand Down