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

PR #17956: [keras/engine] Standardise docstring usage of "Default to" #18185

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion keras/engine/base_layer_v1.py
Original file line number Diff line number Diff line change
@@ -237,7 +237,7 @@ def __init__(

# Whether the layer will track any layers that are set as attribute on
# itself as sub-layers, the weights from the sub-layers will be included
# in the parent layer's variables() as well. Default to True, which
# in the parent layer's variables() as well. Defaults to `True`, which
# means auto tracking is turned on. Certain subclass might want to turn
# it off, like the Sequential model.
self._auto_track_sub_layers = True
8 changes: 4 additions & 4 deletions keras/engine/base_preprocessing_layer.py
Original file line number Diff line number Diff line change
@@ -140,14 +140,14 @@ def compile(self, run_eagerly=None, steps_per_execution=None):
"""Configures the layer for `adapt`.

Arguments:
run_eagerly: Bool. Defaults to `False`. If `True`, this `Model`'s
run_eagerly: Bool. If `True`, this `Model`'s
logic will not be wrapped in a `tf.function`. Recommended to leave
this as `None` unless your `Model` cannot be run inside a
`tf.function`.
steps_per_execution: Int. Defaults to 1. The number of batches to run
`tf.function`. Defaults to `False`.
steps_per_execution: Int. The number of batches to run
during each `tf.function` call. Running multiple batches inside a
single `tf.function` call can greatly improve performance on TPUs or
small models with a large Python overhead.
small models with a large Python overhead. Defaults to `1`.
"""
if steps_per_execution is None:
steps_per_execution = 1