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

[keras/saving/legacy/saved_model] Standardise docstring usage of "Default to" #17978

Merged
Show file tree
Hide file tree
Changes from 1 commit
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 keras/saving/legacy/saved_model/json_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def _decode_helper(

Args:
obj: A decoded dictionary that may represent an object.
deserialize: Boolean, defaults to False. When True, deserializes any Keras
objects found in `obj`.
deserialize: Boolean. When True, deserializes any Keras
objects found in `obj`. Defaults to `False`.
module_objects: A dictionary of built-in objects to look the name up in.
Generally, `module_objects` is provided by midlevel library
implementers.
Expand Down
6 changes: 3 additions & 3 deletions keras/saving/legacy/saved_model/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def save(
save_traces: (only applies to SavedModel format) When enabled, the
SavedModel will store the function traces for each layer. This
can be disabled, so that only the configs of each layer are stored.
Defaults to `True`. Disabling this will decrease serialization time
and reduce file size, but it requires that all custom layers/models
implement a `get_config()` method.
Disabling this will decrease serialization time and filesize, but
SamuelMarks marked this conversation as resolved.
Show resolved Hide resolved
it requires that all custom layers/models implement a
`get_config()` method. Defaults to `True`.

Raises:
ValueError: if the model's inputs have not been defined.
Expand Down