fix indent and improve error message
@@ -3516,7 +3516,7 @@ class Cropping2D(Layer):
if self.data_format == 'channels_first':
if ((inputs.shape[2] is not None and sum(self.cropping[0]) >= inputs.shape[2]) or
(inputs.shape[3] is not None and sum(self.cropping[1]) >= inputs.shape[3])):
- raise ValueError('cropping parameter of Cropping layer must be '
+ raise ValueError('Argument `cropping` must be '
'greater than the input shape. Received: inputs.shape='
f'{inputs.shape}, and cropping={self.cropping}')
if self.cropping[0][1] == self.cropping[1][1] == 0:
@@ -3532,7 +3532,7 @@ class Cropping2D(Layer):
else:
if ((inputs.shape[1] is not None and sum(self.cropping[0]) >= inputs.shape[1]) or
(inputs.shape[2] is not None and sum(self.cropping[1]) >= inputs.shape[2])):
- raise ValueError('cropping parameter of Cropping layer must be '
+ raise ValueError('Argument `cropping` must be '
'greater than the input shape. Received: inputs.shape='
f'{inputs.shape}, and cropping={self.cropping}')
if self.cropping[0][1] == self.cropping[1][1] == 0:
