From c4dd4fab5bd9491b32b4ab1e360d290ad8e8a238 Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Mon, 15 Jan 2024 11:02:55 -0800 Subject: [PATCH] Nit --- keras/ops/operation_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keras/ops/operation_utils.py b/keras/ops/operation_utils.py index 277a70cb1a4..72d1123770b 100644 --- a/keras/ops/operation_utils.py +++ b/keras/ops/operation_utils.py @@ -136,8 +136,8 @@ def compute_pooling_output_shape( output_spatial_shape = np.floor((spatial_shape - 1) / strides) + 1 else: raise ValueError( - "`padding` must be either `'valid'` or `'same'`. Received " - f"{padding}." + "Argument `padding` must be either 'valid' or 'same'. Received: " + f"padding={padding}" ) output_spatial_shape = [int(i) for i in output_spatial_shape] for i in none_dims: