Skip to content

Commit c7157c0

Browse files
committed
[keras/feature_column/dense_features.py,keras/feature_column/sequence_feature_column.py] Standardise docstring usage of "Default to"
1 parent 0f8e81f commit c7157c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

keras/feature_column/dense_features.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
trainable: Boolean, whether the layer's variables will be updated via
9191
gradient descent during training.
9292
name: Name to give to the DenseFeatures.
93-
partitioner: Partitioner for input layer. Defaults to None.
93+
partitioner: Partitioner for input layer. Defaults to `None`.
9494
**kwargs: Keyword arguments to construct a layer.
9595
9696
Raises:
@@ -150,8 +150,8 @@ def call(self, features, cols_to_output_tensors=None, training=None):
150150
method of any `FeatureColumn` that takes a `training` argument. For
151151
example, if a `FeatureColumn` performed dropout, the column could
152152
expose a `training` argument to control whether the dropout should
153-
be applied. If `None`, defaults to
154-
`tf.keras.backend.learning_phase()`.
153+
be applied. If `None`, becomes `tf.keras.backend.learning_phase()`.
154+
Defaults to `None`.
155155
156156
157157
Returns:

keras/feature_column/sequence_feature_column.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def call(self, features, training=None):
122122
method of any `FeatureColumn` that takes a `training` argument. For
123123
example, if a `FeatureColumn` performed dropout, the column could
124124
expose a `training` argument to control whether the dropout should
125-
be applied. If `None`, defaults to
126-
`tf.keras.backend.learning_phase()`.
125+
be applied. If `None`, becomes `tf.keras.backend.learning_phase()`.
126+
Defaults to `None`.
127127
128128
129129
Returns:

0 commit comments

Comments
 (0)