Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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!
- Loading branch information