Skip to content

Commit

Permalink
Merge pull request #44764 from gbaned:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 342087238
Change-Id: I3d22a2ee03a288156a9e6dd72f80fb9055003fa3
  • Loading branch information
tensorflower-gardener committed Nov 12, 2020
2 parents 69a1404 + e39f63d commit 1028958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/python/keras/preprocessing/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ class ImageDataGenerator(image.ImageDataGenerator):
```python
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
y_train = np_utils.to_categorical(y_train, num_classes)
y_test = np_utils.to_categorical(y_test, num_classes)
y_train = utils.to_categorical(y_train, num_classes)
y_test = utils.to_categorical(y_test, num_classes)
datagen = ImageDataGenerator(
featurewise_center=True,
featurewise_std_normalization=True,
Expand Down

0 comments on commit 1028958

Please sign in to comment.