Skip to content

Commit

Permalink
[keras/saving/legacy/saved_model/json_utils.py,keras/saving/legacy/sa…
Browse files Browse the repository at this point in the history
…ved_model/save.py] Standardise docstring usage of "Default to"
  • Loading branch information
SamuelMarks committed Apr 13, 2023
1 parent 0f8e81f commit 1e55573
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 filesize, 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 1e55573

Please sign in to comment.