Compute_total_loss_test ex 6 fails

Hi. I followed all the instructions, but still the check fails

Please share the screenshot of your full error.

I will add that I do:

  1. use the reduce_sum 2.use the tf.keras.losses.categorical_crossentropy 3.use the transpose version of both inputs to the tf.keras.losses.categorical_crossentropy 4.use the from_logits=True Thx for your support
    Gilad

What about this point:

First, you have to pass labels and then logits.

Ok i’ll look at it later. Thx

בתאריך יום ג׳, 5 במרץ 2024, 17:09, מאת Saif Ur Rehman via DeepLearning.AI ‏<notifications@dlai.discoursemail.com>:

Yes. that was the thing.
Thx, Gilad