SIGN IN SIGN UP

Respect axis when squeezing singleton class dim in sparse_categorical_crossentropy (#22969)

* fix(losses): respect axis when squeezing singleton class dim in sparse_categorical_crossentropy

* review: use canonicalize_axis, drop verbose comments, use skipif marker
R
rstar327 committed
cecd7439540fe0bdac29a6f3e17aef07d0010c53
Parent: 460ec47
Committed by GitHub <noreply@github.com> on 5/27/2026, 8:46:33 PM