Hello:
when I run test, I get shape of labels as (4, 2) (and they are one-hot) and logits as (6, 2). Basically, those are the two tensors:
tf.Tensor(
[[0. 1.]
[0. 0.]
[0. 0.]
[0. 0.]], shape=(4, 2), dtype=float32)
tf.Tensor(
[[ 2.4048107 5.0334096 ]
[-0.7921977 -4.1523376 ]
[ 0.9447198 -0.46802214]
[ 1.158121 3.9810789 ]
[ 4.768706 2.3220146 ]
[ 6.1481323 3.909829 ]], shape=(6, 2), dtype=float32)
The shapes do not match so my tf.keras.losses.CategoricalCrossentropy command fails. How can they mismatch so? Any hint? Thank you so much!