Skip to content

Commit

Permalink
Replaced printing length of arguments by printing the arguments thems…
Browse files Browse the repository at this point in the history
…elves
  • Loading branch information
fbadine committed Jan 28, 2025
1 parent 2ac595d commit cd886b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keras/src/backend/mlx/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ def _sliding_windows(x, window_shape, window_strides):
raise ValueError(
"To extract sliding windows, the lengths of window_shape and "
"window_strides must be equal to the signal's spatial dimensions. "
f"However, the signal has spatial_dims={len(spatial_dims)} while "
f"len(window_shape)={len(window_shape)} and len(window_strides)="
f"{len(window_strides)}."
f"However, the signal has spatial_dims={spatial_dims} while "
f"window_shape={window_shape} and window_strides={window_strides}."
)

shape = x.shape
Expand Down

0 comments on commit cd886b9

Please sign in to comment.