From 2e7f0f4f0491fae7ac9c4d0893b87820f8a00fad Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Sat, 20 Jun 2020 20:32:38 -0700 Subject: [PATCH] GitHub Issue #40462 fix typo PiperOrigin-RevId: 317504961 Change-Id: I80c98d7f317280588a400eadcd0adf19d728ce66 --- tensorflow/python/keras/preprocessing/image_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/keras/preprocessing/image_dataset.py b/tensorflow/python/keras/preprocessing/image_dataset.py index 6e78ac3c03a..7c7df083559 100644 --- a/tensorflow/python/keras/preprocessing/image_dataset.py +++ b/tensorflow/python/keras/preprocessing/image_dataset.py @@ -147,7 +147,7 @@ def image_dataset_from_directory(directory, 'directory. If you wish to infer the labels from the subdirectory ' 'names in the target directory, pass `labels="inferred"`. ' 'If you wish to get a dataset that only contains images ' - '(no labels), pass `labels_mode=None`.') + '(no labels), pass `label_mode=None`.') if class_names: raise ValueError('You can only pass `class_names` if the labels are ' 'inferred from the subdirectory names in the target '