Updating a typo in doc
Hi @sushreebarsa It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.
@fchollet, @qlzh727
Updated the line from if (y_pred_rank - y_true_rank != 1) or y_pred_shape[-1] == 1:  to
if (y_pred_rank - y_true_rank == 1) or y_pred_shape[-1] == 1:
 as the current behavior will squeeze the y_pred tensor even when it’s the same rank and shape as the y_pred tensor.
Fixes #62718

Please have a look at this and do the needful. Thank you!