Improving Deep Neural Networks: Hyperparameter Tuning, Regularization and Optimization
week 3
exercise 6
I used "
loss=tf.keras.losses.categorical_crossentropy(tf.transpose(labels), tf.transpose(logits),from_logits=True)
cost = tf.reduce_mean(loss) "
I got an error. Shapes (2, 4) and (2, 6) are incompatible
How to fix the problem?
Thank you.