From 54578298c511e8fa80123b8821692a31763b1e06 Mon Sep 17 00:00:00 2001 From: divyashreepathihalli Date: Thu, 17 Oct 2024 22:02:42 +0000 Subject: [PATCH] remove debug code --- keras_hub/src/layers/preprocessing/image_converter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/keras_hub/src/layers/preprocessing/image_converter.py b/keras_hub/src/layers/preprocessing/image_converter.py index 2dc48bf1c..37b221c1f 100644 --- a/keras_hub/src/layers/preprocessing/image_converter.py +++ b/keras_hub/src/layers/preprocessing/image_converter.py @@ -147,11 +147,9 @@ def image_size(self, value): def call(self, inputs): x = inputs if self.image_size is not None: - x = self.resizing(x) + x = self.resizing(inputs) if self.scale is not None: - x = ops.cast(x, self.dtype) * self._expand_non_channel_dims( - self.scale, x - ) + x = x * self._expand_non_channel_dims(self.scale, x) if self.offset is not None: x = x + self._expand_non_channel_dims(self.offset, x) return x