Skip to content

Commit

Permalink
PR #17770: [keras/callbacks.py] Standardise docstring usage of "Defau…
Browse files Browse the repository at this point in the history
…lt to"

Imported from GitHub PR #17770

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

--
845d9e9 by Samuel Marks <[email protected]>:

[keras/callbacks.py] Standardise docstring usage of "Defaults to"

Merging this change closes #17770

FUTURE_COPYBARA_INTEGRATE_REVIEW=#17770 from SamuelMarks:keras.callbacks-defaults-to 845d9e9
PiperOrigin-RevId: 522178182
  • Loading branch information
tensorflower-gardener committed Apr 7, 2023
1 parent cbbe8eb commit 85ead74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keras/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ class ProgbarLogger(Callback):
should *not* be averaged over an epoch.
Metrics in this list will be logged as-is.
All others will be averaged over time (e.g. loss, etc).
If not provided, defaults to the `Model`'s metrics.
When None, uses the `Model`'s metrics. Defaults to `None`.
Raises:
ValueError: In case of invalid `count_mode`.
Expand Down Expand Up @@ -2276,8 +2276,8 @@ def keras_model_summary(name, data, step=None):
be this name prefixed by any active name scopes.
data: A Keras Model to write.
step: Explicit `int64`-castable monotonic step value for this summary. If
omitted, this defaults to `tf.summary.experimental.get_step()`, which
must not be None.
None, this uses `tf.summary.experimental.get_step()`, which
must not be None. Defaults to `None`.
Returns:
True on success, or False if no summary was written because no default
Expand Down

0 comments on commit 85ead74

Please sign in to comment.