Skip to content

Commit

Permalink
update: compute_output_shape returns tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
soumik12345 committed Jul 15, 2023
1 parent 0d60c8b commit efb57ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_core/layers/preprocessing/random_crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def compute_output_shape(self, input_shape, *args, **kwargs):
input_shape = tf.TensorShape(input_shape).as_list()
input_shape[self.height_axis] = self.height
input_shape[self.width_axis] = self.width
return tf.TensorShape(input_shape)
return tuple(input_shape)

def get_config(self):
config = super().get_config()
Expand Down

0 comments on commit efb57ff

Please sign in to comment.