From d96f9102e79d5e4a0eca2e2eb138d991c95fd364 Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Sat, 14 Dec 2024 04:18:17 -0800 Subject: [PATCH] Fix typo --- .../preprocessing/image_preprocessing/random_grayscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras/src/layers/preprocessing/image_preprocessing/random_grayscale.py b/keras/src/layers/preprocessing/image_preprocessing/random_grayscale.py index a17199f8eec..418f2982777 100644 --- a/keras/src/layers/preprocessing/image_preprocessing/random_grayscale.py +++ b/keras/src/layers/preprocessing/image_preprocessing/random_grayscale.py @@ -54,7 +54,7 @@ def __init__(self, factor=0.5, data_format=None, **kwargs): ) self.factor = factor self.data_format = backend.standardize_data_format(data_format) - self.random_generator = self.backend.random.SeedGenerator() + self.generator = self.backend.random.SeedGenerator() def get_random_transformation(self, images, training=True, seed=None): if seed is None: