Skip to content

Commit

Permalink
PR #17978: [keras/saving/legacy/saved_model] Standardise docstring us…
Browse files Browse the repository at this point in the history
…age of "Default to"

Imported from GitHub PR #17978

This is one of many PRs. Discussion + request to split into multiple PRs @ #17748
Copybara import of the project:

--
1e55573 by Samuel Marks <[email protected]>:

[keras/saving/legacy/saved_model/json_utils.py,keras/saving/legacy/saved_model/save.py] Standardise docstring usage of "Default to"

--
62ca977 by Samuel Marks <[email protected]>:

[keras/saving/legacy/saved_model/save.py] Decompound

Merging this change closes #17978

FUTURE_COPYBARA_INTEGRATE_REVIEW=#17978 from SamuelMarks:keras.saving.legacy.saved_model-defaults-to 62ca977
PiperOrigin-RevId: 529004855
  • Loading branch information
tensorflower-gardener committed May 3, 2023
1 parent 2733b6e commit bc74358
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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 file size, but
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

0 comments on commit bc74358

Please sign in to comment.