Skip to content

Commit

Permalink
Merge pull request #16071 from hdubbs:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 429597590
  • Loading branch information
tensorflower-gardener committed Feb 18, 2022
2 parents 75d70a6 + 4967ce6 commit e7ba911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keras/engine/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def compile(self,
Args:
optimizer: String (name of optimizer) or optimizer instance. See
`tf.keras.optimizers`.
loss: Loss function. Maybe be a string (name of loss function), or
loss: Loss function. May be a string (name of loss function), or
a `tf.keras.losses.Loss` instance. See `tf.keras.losses`. A loss
function is any callable with the signature `loss = fn(y_true,
y_pred)`, where `y_true` are the ground truth values, and
Expand Down
2 changes: 1 addition & 1 deletion keras/preprocessing/text_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def text_dataset_from_directory(directory,
`(batch_size,)`.
- if `label_mode` is `binary`, the labels are a `float32` tensor of
1s and 0s of shape `(batch_size, 1)`.
- if `label_mode` is `categorial`, the labels are a `float32` tensor
- if `label_mode` is `categorical`, the labels are a `float32` tensor
of shape `(batch_size, num_classes)`, representing a one-hot
encoding of the class index.
"""
Expand Down

0 comments on commit e7ba911

Please sign in to comment.