Skip to content

Commit b2379d9

Browse files
authored
Small docs updates (#1553)
1 parent 825b192 commit b2379d9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

keras_nlp/models/causal_lm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def compile(
101101
instance. Defaults to `"auto"`, which uses the default optimizer
102102
for the given model and task. See `keras.Model.compile` and
103103
`keras.optimizers` for more info on possible `optimizer` values.
104-
loss: `"auto"', a loss name, or a `keras.losses.Loss` instance.
104+
loss: `"auto"`, a loss name, or a `keras.losses.Loss` instance.
105105
Defaults to `"auto"`, where a
106106
`keras.losses.SparseCategoricalCrossentropy` loss will be
107107
applied for the token classification `CausalLM` task. See

keras_nlp/models/classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def compile(
7777
instance. Defaults to `"auto"`, which uses the default optimizer
7878
for the given model and task. See `keras.Model.compile` and
7979
`keras.optimizers` for more info on possible `optimizer` values.
80-
loss: `"auto"', a loss name, or a `keras.losses.Loss` instance.
80+
loss: `"auto"`, a loss name, or a `keras.losses.Loss` instance.
8181
Defaults to `"auto"`, where a
8282
`keras.losses.SparseCategoricalCrossentropy` loss will be
8383
applied for the classification task. See

keras_nlp/models/masked_lm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def compile(
7272
instance. Defaults to `"auto"`, which uses the default optimizer
7373
for the given model and task. See `keras.Model.compile` and
7474
`keras.optimizers` for more info on possible `optimizer` values.
75-
loss: `"auto"', a loss name, or a `keras.losses.Loss` instance.
75+
loss: `"auto"`, a loss name, or a `keras.losses.Loss` instance.
7676
Defaults to `"auto"`, where a
7777
`keras.losses.SparseCategoricalCrossentropy` loss will be
7878
applied for the token classification `MaskedLM` task. See

keras_nlp/models/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __setattr__(self, name, value):
105105

106106
@property
107107
def backbone(self):
108-
"""A `keras.Model` instance providing the backbone sub-model."""
108+
"""A `keras_nlp.models.Backbone` model with the core architecture."""
109109
return getattr(self, "_backbone", None)
110110

111111
@backbone.setter
@@ -114,7 +114,7 @@ def backbone(self, value):
114114

115115
@property
116116
def preprocessor(self):
117-
"""A `keras.layers.Layer` instance used to preprocess inputs."""
117+
"""A `keras_nlp.models.Preprocessor` layer used to preprocess input."""
118118
return getattr(self, "_preprocessor", None)
119119

120120
@preprocessor.setter

0 commit comments

Comments
 (0)