From 339cfd1f977e703355091ede34fd3f31ecd9eb54 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Mon, 3 Apr 2023 23:53:01 -0400 Subject: [PATCH] [keras/engine/base_layer.py] Standardise docstring usage of "Defaults to" --- keras/engine/base_layer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keras/engine/base_layer.py b/keras/engine/base_layer.py index 02b1b1e1585..f03ff0605e9 100644 --- a/keras/engine/base_layer.py +++ b/keras/engine/base_layer.py @@ -458,7 +458,7 @@ def __init__( # Whether the layer will track any layers that is 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 Sequential model. self._auto_track_sub_layers = True @@ -3830,9 +3830,9 @@ def __init__( force_generator: boolean, default to False, whether to force the RandomGenerator to use the code branch of tf.random.Generator. rng_type: string, the rng type that will be passed to backend - RandomGenerator. Default to `None`, which will allow RandomGenerator + RandomGenerator. `None`, will allow RandomGenerator to choose types by itself. Valid values are "stateful", "stateless", - "legacy_stateful". + "legacy_stateful". Defaults to `None`. **kwargs: other keyword arguments that will be passed to the parent *class """